Mail Archives: djgpp/1996/12/20/01:38:00
user AT saintmarys DOT edu wrote:
>
> One of our Computer Science faculty usually teaches a course in which he
> uses assembly language to teach hardware concepts. However, he has
> always used C/C++ to handle I/O and certain high level functions. He has
> used Borland's Turbo C and Turbo ASM on Intel machines, but is not very
> satisfied with it. I'ld like to know whether it might be worth
> investigating use of djgpp C for this. I guess it would need to be able
> to compile inline ASM code to work for him.
In fact, DJGPP (or rather, the GNU C/C++ from which it is derived) has a
very powerful inline assembly facility. It uses AT&T syntax, which
differs quite a bit from the standard Intel syntax; however, once most
people have learned to use AT&T, they seldom go back. :)
For more information on DJGPP's assembly format, visit
http://www.delorie.com/djgpp/v2faq/ and read the chapter on low-level
programming; specifically section 18.13. The exact URL for that section
is <http://www.delorie.com/djgpp/v2faq/faq143.html#Inline Asm>, and it
has cross-references to some other documentation on the subject.
To find out all about DJGPP, how it works, and how to get and install
it, visit ftp://ftp.simtel.net/pub/simtelnet/gnu/djgpp/v2/ and get the
file 'readme.1st'.
Good luck!
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| "Starting flamewars since 1993" | http://www.cs.com/fighteer |
| *** NOTICE *** This .signature is generated randomly. |
| If you don't like it, sue my computer. |
---------------------------------------------------------------------
- Raw text -