From: "Christian Merz" Newsgroups: comp.os.msdos.djgpp Subject: How I can get 32Bit code with gcc? Date: Sun, 21 Jan 2001 12:43:43 +0100 Organization: Buergernetz Dillingen Lines: 43 Message-ID: <94ehvn$350$1@snoopy.bndlg.de> NNTP-Posting-Host: buerger51.bndlg.de X-Trace: snoopy.bndlg.de 980077367 3232 194.95.207.211 (21 Jan 2001 11:42:47 GMT) X-Complaints-To: postmaster AT bndlg DOT de NNTP-Posting-Date: 21 Jan 2001 11:42:47 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have following problem with gcc. If I compile and link, for example the following code with "gcc -c main.c -o main.o -nostdlib -fno-builtin -nostartfiles -Di586" and "ld -o main.com -oformat binary -T startup\link.scr startup\c1.o main.o" (c1.o is my on startup code). /*main.c*/ int main() { for(;;); return 0; } i'll get somthing like that, if I take a look with the dos debug.exe: 0x100: pusb bp 0x101: mov bp,sp 0x103: nop 0x104: jmp 0x104 0x106: mov si,si 0x109: xor ax,ax 0x10c: jmp 0x10f 0x10f: leave 0x110: ret but this is not what i want, i want such a thing like this: push ebp mov ebp,esp nop . . . I have no idea whats going wrong here, but i need the 32bit code! More I need a output file with 32bit segments too (flat memory stuff)! Anybody has an idea, how i'll get this simple thing running? thanks in advance chris