Mail Archives: djgpp/1997/01/29/14:05:24
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 -