Mail Archives: djgpp/2000/04/07/08:44:57
From: | "Aquaz" <abba AT abba DOT ab>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Compile in raw binary
|
Date: | Fri, 7 Apr 2000 10:04:23 -0500
|
Organization: | Unisys Corporation
|
Lines: | 27
|
Message-ID: | <8ck4q5$oob$1@mail.pl.unisys.com>
|
NNTP-Posting-Host: | 192.39.145.60
|
X-Newsreader: | Microsoft Outlook Express 4.72.3110.5
|
X-Mimeole: | Produced By Microsoft MimeOLE V4.72.3110.3
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi all!
I'm a c/c++ developer but new about djgpp compiler.
Is it possible compile a simple c code into raw binary x86 opcodes, similar
the .COM file?
I explain better:
if I have a program like:
int main(void) {
register x;
x = 0;
...
return(0);
}
Can i build it to have a file like:
B8 00 00 ... CB
(that would be "mov ax, 0 ... retf" )
So, is there some gpp command flags that builds in this way?
I hope I explain as clear as possible my question.
Thank's in advance!
Aquaz
- Raw text -