> > 1) Can this be done with GNU compilers and
> > if so, which is the best one to use?
>
> Yes and no. GCC only builds 32-bit code, and x86 machines boot into 16-bit
> mode. However, as86 (or more recently, gas) can assemble the 16-bit code
> you need to switch to protected mode.
yes that's pitty for <386 computer but another GNU varient called BCC
whichcompiles 16 bit code. which is being used by ELKS guys..( for hint).You can
use this compiler to to generate Object files....(all the best)
>
>
> > 2) What compiler directives (or linker commands) do I need to know
> > to set things like program origin, data space etc.
>
> You'll need to sit down and acquaint yourself with the ld info page for
> that.
Elks project guys can help for figuring out the linker command.
Regards,Naushit