X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: DGJPP - ASSEMBLER and FAR Date: 19 Mar 2004 12:24:19 GMT Organization: Aachen University of Technology (RWTH) Lines: 26 Message-ID: References: NNTP-Posting-Host: ac3b07.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1079699059 10466 137.226.33.205 (19 Mar 2004 12:24:19 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 19 Mar 2004 12:24:19 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Asif wrote: > I have a assembler code which uses 32-bit registers (mov eax,0x80000000) > and this has public function > Can I compile this into a obj .,.. if so where can I find the gcc option to > do so. That code can't be compiled with GCC or any of its tools, because it's written in "Intel" rather than "AT&T" assembly syntax. You'll need a third-party assember for this. NASM seems to be the common recommendation. > I also have a c file (16 bit with far ptr access) which tries to > call the function of the previous assembly code. Is it possible to > compile (16-bit) .. how. Not with any released version of GCC. You'll probably need exactly the C compiler this code was originally written for. You're looking at the wrong toolchain for this particular task. You'll either have to rewrite all that code completely, or use a different toolchain. OpenWatcom should do it. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.