Article View: gnu.gcc.help
Article #52086DJ's djgpp and inline assembler
From: Nieminen Mika Petteri
Date: Fri, 19 Feb 1993 07:54
Date: Fri, 19 Feb 1993 07:54
40 lines
1590 bytes
1590 bytes
Hello! I've just started to use DJ's GCC port to PC (djgpp and go32 -extender). I think gcc's version is 222 (2.2.2 or something). Now i have to 'port' my old Turbo-C 2.0 programs to gcc, but i can't compile any source using inline assembler -code under gcc. I have been trying to do it at least following ways: - Foo is C-variable asm mov ebx, _foo asm movl ebx, _foo asm movl %ebx, _foo asm (mov ebx, _foo); asm (mov %ebx, _foo) . . . inline asm mov ebx, _foo . . . inline asm (mov ebx, _foo); . . . None of these ways pass the gcc -compiler without errors. So, could someone please tell me what am i doing wrong or is it even possible to use inline assembler code inside c-source code with gcc. Please post your answer to this newsgroup or directly to my email address. In that case i will post the summary back to this newsgroup. Mika Nieminen mpni@tukki.jyu.fi
Technical Details
Message-ID:
<1993Feb19.075444.4470@jyu.fi>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!mcsun!news.funet.fi!network.jyu.fi!mpniReferences:
<QBRAB1ZW@minnie.zdv.uni-mainz.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,db4f8a5989d9d150 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-02-18 23:54:44 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!mailgzrz.TU-Berlin.DE!news.netmbx.de!Germany.EU.net!mcsun!news.funet.fi!network.jyu.fi!mpni From: mpni@jyu.fi (Nieminen Mika Petteri) Subject: DJ's djgpp and inline assembler Message-ID: <1993Feb19.075444.4470@jyu.fi> Organization: University of Jyvaskyla, Finland References: <QBRAB1ZW@minnie.zdv.uni-mainz.de> Date: Fri, 19 Feb 1993 07:54:44 GMT Lines: 41