www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/20/01:38:00

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Inline Assembly Language ?
Date: Fri, 20 Dec 1996 01:01:15 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 34
Message-ID: <32BA55DB.6534@cs.com>
References: <32BA5B3B DOT 7311 AT saintmarys DOT edu>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp211.cs.com
Mime-Version: 1.0
To: user AT saintmarys DOT edu
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019