delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/13/15:53:14

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Win32 gcc: new attributes -- "dllimport" and "dllexport"
13 Mar 1998 15:53:14 -0800 :
Message-ID: <9803132337.AA00581.cygnus.cygwin32.developers@modi.xraylith.wisc.edu>
To: cygwin32-developers AT cygnus DOT com
Cc: "Jan-Jaap van der Heijden" <J DOT J DOT vanderHeijden AT student DOT utwente DOT nl>,
"Colin Peters" <colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp>,
"Pedro A. Aranda Guti\irrez" <paag AT tid DOT es>

I've have a first-cut implementation of two new attributes in Win32 gcc 
-- dllimport and dllexport. Borrows heavily from PE/ARM work by Doug 
Evans, but unfortunately it's sort of half done and Doug is no longer
working on it.

The predefined macro __declspec(x) map to __attribute__((x)), so it
can grok __declspec(dllimport) etc that Win32 headers like so much.

The "dllexport" basically outputs some extra stuff in the .drectve
section, but that's probably not really useful until GNU ld folds
in dlltool.

Extremely untested, especially on anything longer 10 lines of code. If
you want to play with and test it, please let me know.

If you have egcs-1.0.2 or some approximation of it, it should patch in 
cleanly. The changes are confined to i386/cygwin32.h and i386/winnt.c,
so is it's also reasonable to just patch in manually.

Regards,
Mumit

- Raw text -


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