Mail Archives: djgpp/1993/02/12/11:28:47
Hello,
I am teaching a compilers class and I would like the students' compilers
to generate 32-bit 386 code. Since our PC's run DOS, I need an extender
that can be freely distributed. Naturally, I thought of the djgpp stuff.
I've gotten gcc to work on the PC and when I do
gcc -S test.c
I notice that the assembly produced by gcc is not in the usual
Microsoft assembly language (also used by Borland's TASM and others)
and that the instructions are typically "pushl" and "movl" instead of
"push" and "move" and the order of operands is reversed. When I write
a program in microsoft assembly, the gnu assembler (as.exe)
doesn't understand it.
I would like the students' compilers to be able to generate the usual
assembly code and still be able to use the djgpp extender (or some other
free extender). Is this possible?
If that is not possible, do you know where I can get a description of
the assembly language that as.exe understands?
Thanks in advance for your help. Please reply by email since I may
not be on this mailing list yet (I just sent a message to
listserv AT sun DOT soe DOT clarkson DOT edu).
-Ben Goldberg
--------------------------------------------------------------
Dept. of Computer Science (212) 998-3495
Courant Institute of Mathematical Sciences Fax: (212) 995-4123
New York University
251 Mercer Street
New York, NY 10012
- Raw text -