www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/29/03:18:10

Message-Id: <199604290709.DAA17704@delorie.com>
Date: Mon, 29 Apr 96 09:57:22 LIT
From: Martynas Kunigelis <martynas DOT kunigelis AT VM DOT KTU DOT LT>
Subject: ELF wanted
To: DJGPP mailing list <djgpp AT delorie DOT com>

  Hi everyone,

I am looking for documentation on ELF-i386 file format. If you have any info,
maybe the file <elf.h>, if one exists, or binutils (at least as and ld),
configured for ELF and compiled with DJGPP, PLEASE contact me. Just one
question for now: does ELF allow to create relocatable executables?

Thanks to everyone who helped me out with the Pentium Compiler Group URL!

Now something weird: I have added a new function attribute to GCC: fastcall.
You can now declare a function with __attribute__ ((fastcall)) and it will
be called with first three parameters in registers and will adjust stack
pointer when returning (i.e. attributes regparm(3) and stdcall combined).
This calling convention, combined with -fomit-frame-pointer, can be very
useful in terms of speed. I also added a -mfastcall option, which acts like
-mregparm=3 and -mrtd in pair. Well, there's currently no use for it with
DJGPP, since there are no fastcall'ed libraries and startup files, they
might appear someday, and then it would take minor changes in specs to get
the thing working. Still the fn attribute is very useful. I sent a suggestion
to GCC developers to add the fastcall feature in the official GCC release.
Hope the'd agree.. Anyway, if someone cares, please contact me, I might mail
you a small patch to the gcc-2.7.2 sources, or maybe upload the pre-compiled
cc1 and cc1plus somewhere.

See ya!

Martynas

- Raw text -


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