www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/05/16/16:04:43.1

Date: Sun, 16 May 1999 18:26:39 +0200
To: pgcc AT delorie DOT com
Cc: yauj AT comm DOT toronto DOT edu
Subject: Re: Using PGCC to compile C program together with modules in assembly language
Message-ID: <19990516182639.C308@cerebro.laendle>
Mail-Followup-To: pgcc AT delorie DOT com, yauj AT comm DOT toronto DOT edu
References: <Pine DOT GSO DOT 3 DOT 96 DOT 990514091321 DOT 2560A-100000 AT tesla DOT comm> <19990514210359U DOT yashi AT yashi DOT com>
Mime-Version: 1.0
In-Reply-To: <19990514210359U.yashi@yashi.com>; from Yasushi Shoji on Fri, May 14, 1999 at 09:03:59PM -0400
X-Operating-System: Linux version 2.2.7 (root AT cerebro) (gcc driver version pgcc-2.93.09 19990221 (gcc2 ss-980929 experimental) executing gcc version 2.7.2.3)
From: Marc Lehmann <pcg AT goof DOT com>
Reply-To: pgcc AT delorie DOT com
X-Mailing-List: pgcc AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, May 14, 1999 at 09:03:59PM -0400, Yasushi Shoji wrote:
> 
> there is a program which can convert AT&T syntax <-> Intel's.
> try freshmeat.net.

Or just use nasm. There is also some support for NASM syntax in pgcc, but
I think you don't need it (unless you want to do inline assembly in grudgy
intel syntax).

Also, the inline assembly of gcc/pgcc is quite powerful. The snapshots
allow you to mix mmx code freely (the difference to gcc is that you can
instruct pgcc to leave values in mmx registers for you).

> i haven't tried linking objct file from any asembler other than 
> gas with gcc, but there should be a way to do it.

under ELF (most systems) just about any assembler should do, no underscores
or similar madness is required.

However, look at gcc inline assembly, its very suited to your needs, I
think (somebody mentioned the assembler-howto).

> > 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

Also, the option is 'O' for optimize and not '0'.

> > 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.

pgcc in real time ;=)

--  
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       pcg AT goof DOT com      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019