On Tue, 9 Feb 1999, Dave wrote:
> I am interested in doing a ROM based embedded project with C. The
> application will be small, stand-alone, no OS on an Intel platform doing a
> single task. What I need to know is how do I go about compiling my project
> and burning it into ROM? Some of the things I need to know are:
>
> 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.
> 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.
--
"Love the dolphins," she advised him. "Write by W.A.S.T.E.."