gcc --target=i386-realmode

Etienne Lorrain etienne.lorrain@ibm.net
Mon Aug 2 03:07:00 GMT 1999


  Hello,

  To follow on my E-mail few days ago,
 here is where the patch to GAS and the
 application I am playing with is stored:
ftp://ftp.varesearch.com/pub/support/hjl/binutils/16bit

  Have a look first at:
ftp://ftp.varesearch.com/pub/support/hjl/binutils/16bit/readme.1st

  You will find here few Kbytes of C source
 code compiling and running in real mode on
 a 80386+, to produce the first version of a
 bootloader.

  The patch to GAS is relative to binutils-2.9.5.0.3,
 and in fact is included in binutils-2.9.5.0.4, to be
 found at: (BETA versions)
ftp://ftp.varesearch.com/pub/support/hjl/binutils/beta/

  I am still thinking that some parts of the
 GAS patch should go to the compiler, probably
 in GCC-3.0 because it is clearly to late for 2.95,
 but it is just IHMO. (more precisely, adding
 the "l" postfix to "call", "ret", "leave" because
 the compiler assumes 4 bytes address when referencing
 function parameters, i.e. "mov 4(%esp),%ax" for the
 last parameter of a function)
 
  Thanks for reading,
  Etienne.



More information about the Gcc mailing list