delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/29/14:05:24

From: ovek AT arcticnet DOT no (Ove Kaaven)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Any one writing OS in DJGPP?
Date: Wed, 29 Jan 1997 05:53:36 GMT
Organization: Vplan Programvare AS
Lines: 22
Message-ID: <5cncm4$1pu$1@troll.powertech.no>
References: <Pine DOT SGI DOT 3 DOT 93 DOT 970127104340 DOT 2166A-100000 AT gibson DOT eee DOT upd DOT edu DOT ph> <32EF12AD DOT 59E2B600 AT art DOT alcatel DOT fr>
NNTP-Posting-Host: alwayscold.darkness.arcticnet.no
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Francis BOURQUE <bourque AT art DOT alcatel DOT fr> wrote:

>Is there a way to generate 16-bits code with DJGPP or do we still have
>to use a commercial compiler/assembler like Borland C++/v3.1???

I think there are several free assemblers available on Simtel. I used
A86 myself, but you might prefer another one.

>At what step do you stop programming in assembly and use the C language?

It depends. Theoretically, you can use pure assembly for setting up
the GDT and selectors and such, and then use C (with some inline
assembly, of course) for all the rest, if you're careful. However,
every exception/interrupt entry/exit point must be assembly, because
gcc doesn't know about 'far'. I usually use inline-assembly call
wrappers for that.

In general, if it looks easier to do in assembly, you can use that.
Otherwise, use C, and make .h files with often-used inline-assembly
macros. This will usually make development quicker and easier.


- Raw text -


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