All of lore.kernel.org
 help / color / mirror / Atom feed
* 'C' calling convention change.
@ 2004-10-06 12:20 Richard B. Johnson
  2004-10-06 13:16 ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Richard B. Johnson @ 2004-10-06 12:20 UTC (permalink / raw)
  To: linux-kernel


The new Red Hat Fedora release uses the following gcc version:

 	gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)

I have many assembly-language routines that need to interface with
'C' code. The new 'C' compiler is doing something different than
gcc 3.2, previously used.

I need to know what general-purpose registers need to be saved
in the called procedure. Previously, one needed to save the
index registers only (%ebx, %edi, %esi). Apparently I need to
save others with the new compiler because, although the called
procedures work, subsequent 'C' code fails in strange ways.

Please, if somebody __knows__ (really knows), let me know. I
will have to edit over 200 assembly-language files and I want
to do it only once!  I don't want to just save all the registers
used because this wastes CPU cycles and the only reason for
the assembly in the first place was to save CPU cycles.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.5-1.358-noreg on an i686 machine (5570.56 BogoMips).
             Note 96.31% of all statistics are fiction.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'C' calling convention change.
  2004-10-06 12:20 'C' calling convention change Richard B. Johnson
@ 2004-10-06 13:16 ` Arjan van de Ven
  2004-10-06 13:34   ` Richard B. Johnson
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2004-10-06 13:16 UTC (permalink / raw)
  To: Richard B. Johnson; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

On Wed, 2004-10-06 at 14:20, Richard B. Johnson wrote:
> The new Red Hat Fedora release uses the following gcc version:
> 
>  	gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
> 
> I have many assembly-language routines that need to interface with
> 'C' code. The new 'C' compiler is doing something different than
> gcc 3.2, previously used.

I assume you're talking about userspace code here. Why are you bringing
that up on the kernel list?
The gcc list or even a fedora(-devel) list would be far more
appropriate.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'C' calling convention change.
  2004-10-06 13:16 ` Arjan van de Ven
@ 2004-10-06 13:34   ` Richard B. Johnson
  2004-10-06 13:37     ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Richard B. Johnson @ 2004-10-06 13:34 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel


Well I'm trying to port some drivers. I thought those were
kernel thingies. Also, the kernel is so connected  with gcc-isms
that it's kinda important.

Cheers,
Dick Johnson
Penguin : Linux version 2.6.5-1.358-noreg on an i686 machine (5570.56 BogoMips).
             Note 96.31% of all statistics are fiction.


On Wed, 6 Oct 2004, Arjan van de Ven wrote:

> On Wed, 2004-10-06 at 14:20, Richard B. Johnson wrote:
>> The new Red Hat Fedora release uses the following gcc version:
>>
>>  	gcc (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
>>
>> I have many assembly-language routines that need to interface with
>> 'C' code. The new 'C' compiler is doing something different than
>> gcc 3.2, previously used.
>
> I assume you're talking about userspace code here. Why are you bringing
> that up on the kernel list?
> The gcc list or even a fedora(-devel) list would be far more
> appropriate.
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 'C' calling convention change.
  2004-10-06 13:34   ` Richard B. Johnson
@ 2004-10-06 13:37     ` Arjan van de Ven
  0 siblings, 0 replies; 4+ messages in thread
From: Arjan van de Ven @ 2004-10-06 13:37 UTC (permalink / raw)
  To: Richard B. Johnson; +Cc: linux-kernel

On Wed, Oct 06, 2004 at 09:34:43AM -0400, Richard B. Johnson wrote:
> 
> Well I'm trying to port some drivers. I thought those were

url?

> kernel thingies. Also, the kernel is so connected  with gcc-isms
> that it's kinda important.

just mark them asmlinkage and the usual clobber rules apply.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-06 13:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-06 12:20 'C' calling convention change Richard B. Johnson
2004-10-06 13:16 ` Arjan van de Ven
2004-10-06 13:34   ` Richard B. Johnson
2004-10-06 13:37     ` Arjan van de Ven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.