linux-mips
[Top] [All Lists]

Re: Linking assembled PIC code with Linux libc library

To: Sergio Ruiz <quekio@gmail.com>
Subject: Re: Linking assembled PIC code with Linux libc library
From: Ralf Baechle <ralf@linux-mips.org>
Date: Mon, 11 Apr 2005 17:09:47 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <e02bc661050410122733e21927@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <e02bc66105040905091efb3dc6@mail.gmail.com> <20050409134919.GA4738@nevyn.them.org> <e02bc661050409113820cceae3@mail.gmail.com> <20050409215140.GA15253@nevyn.them.org> <e02bc66105041012091afdf306@mail.gmail.com> <e02bc661050410122733e21927@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
On Sun, Apr 10, 2005 at 09:27:58PM +0200, Sergio Ruiz wrote:

> But if I use GCC with my assembler code, and I use a simple 'printf'
> function, the assembler code I get is totally different than the
> original one, so I cant debug it.

Sounds like you're being surprised by the gcc 3.4 optimization where gcc
may replace certain functions such as printf with a whole sequence of
calls to more basic stdio functions?

  Ralf

<Prev in Thread] Current Thread [Next in Thread>