delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/06/22/03:59:55

From: W0078%YMS AT MSBG DOT med DOT ge DOT com
Date: 22 Jun 94 16:33:34
Subject: HELP
Apparently-To: <@gemed.MED.GE.COM:djgpp AT sun DOT soe DOT clarkson DOT edu>

To: INTERNET--MSBG

FROM: "Vijay (w0078 AT yms DOT med DOT ge DOT com)"<W0078%YMS AT msbg>
 int djgpp AT sun DOT soe DOT clarkson DOT edu

     I have installed djgpp on my DOS system for 32 bit code generation in
'C'. My objective is to generate prommable code for an i386 based product.
As I require a core image file, I did the following things.

- avoided usage of 'main' so that gcc will not include '__main_'
- specified 'nostartfiles' & 'nostdlib', since I don't need them
- did incremental linking
- specified entry point, text, data & bss start addr's
- finally used my own strip utility which reads coff file and produces an
  an absolute image file (default strip doesn't do this)

At the end of this process I have an image file whose text, data & bss
sizes added up do not match with the image size itself.

I don't need any startup files, code for switching into protected mode.
We have a debugger running on the embedded system which puts the processor
into protected mode and gives control to the application. This application
is what I am trying to generate using the djgpp.

   Immediate information reagarding generation of prommable code using
djgpp would be of great help to me.


Vijay Kumar P
w0078 AT yms DOT med DOT ge DOT com (e-mail)
Wipro GE Medical Systems
Bangalore, India.



- Raw text -


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