Its machine language that builds makes the compliers for higher level language
Originally posted by: Gaunt
You can use the inline assembler from visual C++, but I think there's also a way to use just the command line and visual C++'s assembler to build your exe files. As for figuring out what the syntax is, a search of google will probably help quite a bit... I just did a quick search for "x86 assembly" and came up with quite a few things that could be helpful.
Chances are there is something in your course that will be more helpful, however. For instance, my Prof provided us with an include file for our assembly applications that helped with string manipulation and input/output routines. When you say your textbook doesn't use proper keywords... that doesn't make a lot of sense. Alot of the basic commands in assembly (mov, jmp, bne, add, sub....) are standard commands. The conventions for passing the operands can differ from assembler to assembler, but the keywords should be the same.
I would suggest looking online for a quick x86 assembly tutorial, and picking up an assembler, such as NASM or masm, instead of trying to use Visual C++'s inline assembler. NASM is free, and although I have seen MASM available online, I'm not sure it's free.
laff ... and how is the C compiler written?
$ pwd
/tmp/gcc-3.2-3.2.2ds8/gcc-3.2.2
$find -name '*.c' | wc -l
3433
$find -name '*.S' | wc -l
32
$find -name '*.s' | wc -l
10
$find -name '*.cpp' | wc -l
180
I wish I knew x86 assembly, but now I'm not sure what the question is either. You just have to learn standard x86 assembly, and then embed it directly into C++ source. Here's a brief intro I found using Google:Originally posted by: CPA
Using standard keywords would make sense, but my text uses keywords such as copy, assign, input, output and other whole word expressions. I believe MS VC++ uses abbreviated words, such as what you listed, but I cannot find a list of them in MS VC++ Help. My text also uses up arrows and what looks to be => to assign data into registers. Is that truly the case?
dood ... my point is ... assembler is the base of all languages.
Long before PCs were made... only Mainframe IBM 360/370 were used to teach programming.
I ran around with huge boxes of cards before they implemented text editors.
Not any more, most compilers are compiled with a high level language like C. Even Mono (the GPL .NET implementation) is self hosting, meaning it compiles itself now.
I was stating that your statement above is incorrect. I didnt want to have to get this direct. But I guess I do.
While wanting to use a higher-level language, he wrote the original Unix system in PDP-7 assembler
While wanting to use a higher-level language, he wrote the original Unix system in PDP-7 assembler
I prove my point
Your stuborn. (to put it nicely)
Im not wasting anymore time on you.
