X-Authentication-Warning: yashi.com: Host yashi AT bay1-138 DOT nyc DOT ziplink DOT net [209.206.16.138] claimed to be localhost To: yauj AT comm DOT toronto DOT edu Cc: pgcc AT delorie DOT com Subject: Re: Using PGCC to compile C program together with modules in assembly language In-Reply-To: Your message of "Fri, 14 May 1999 09:24:08 -0400 (EDT)" References: X-Mailer: Mew version 1.93 on XEmacs 21.0 (20 minutes to Nikko) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990514210359U.yashi@yashi.com> Date: Fri, 14 May 1999 21:03:59 -0400 From: Yasushi Shoji X-Dispatcher: imput version 981019(IM102) Lines: 53 Reply-To: pgcc AT delorie DOT com let's just keep cc: to pgcc ml, so that if i made mistake someone hopefully can point out. :) or why don't you subscribe it. From: Joseph Yau Subject: Re: Using PGCC to compile C program together with modules in assembly language Date: Fri, 14 May 1999 09:24:08 -0400 (EDT) > I've written a function > that i've found in a textbook example, and tried to compile it with GCC, > but it gives me all kinds of error message. That's why i'm wondering if > there are different syntax for different assembler, cuz that example i > found is written for TASM/MASM syntax. GAS uses AT&T syntax. it differ from Intel syntax which TASM/MASM uses. reading Assembly HOWTO might help you a bit. > By the way, do u know how u can choose the kind of assembler you > want to use when u install EGCS, and do u know anything about the assembly > language syntax used by different assembler, that is there any difference > between using TASM/a86/MASM/NASM, etc .... there is a program which can convert AT&T syntax <-> Intel's. try freshmeat.net. i haven't tried linking objct file from any asembler other than gas with gcc, but there should be a way to do it. > Also, i've tried the command that u gave me, but it just says > invalid option and unrecongonized option. The exact message is like this: > > % gcc -09 -mpentium -S bblsortc.c > gcc: unrecognized option `-09' > cc1: invalid option `pentium' seems to me that your gcc isn't EGCS/PGCC. try % gcc -v i think only pgcc knows optimize level higher than 7. egcs/pgcc and gcc 2.8 or higher knows 586 or higher -m option that says, your gcc is gcc 2.7.x, isn't it? > working in a Lynx environment where > i have to install and compile these EGCS is really new to me Lynx!! i haven't work on lynx, so i don't know everything i wrote is valid under Lynx. -- yashi