Fw: Interfacing to C (external variables)

From: [at]} <pfister{>
Date: Mon, 26 Jun 2000 14:39:16 +0200

Mit freundlichen Grüssen

Cuno Pfister

Oberon microsystems AG


----- Original Message -----
From: "Beat Heeb" <heeb{([at]})nowhere.xy
To: "Cuno Pfister" <pfister{([at]})nowhere.xy
Sent: Monday, June 26, 2000 1:32 PM
Subject: Re: Interfacing to C (external variables)


> Die Adressen von Objekten in einer DLL werden zur Ladezeit jeweils in eine
> Indirektionstabelle (im importierenden Code) geschrieben. Diese
Indirektion
> laesst sich bei Prozeduren mit einem 'jump indirect' verstecken, bei
> Variablen
> ist das aber nicht moeglich. Zugriffe auf eine DLL Variable vom Typ T sind
> deshalb nur Moeglich wenn auf der Importseite eine Variable vom Typ
> 'Pointer To T' deklariert und die Dereferenz explizit gemacht wird. Da das
> sehr umstaendlich und verwirrend ist, werden exportiere Variablen in DLLs
> so gut wie nie verwendet (ich habe noch nie eine gesehen). Sie sind in BB
> deshalb auch nicht vorgesehen.
>
> b{([at]})nowhere.xy
>
>
> >
> > In the "Platform-Specific Issues" there is a description how
> > to interface to C TYPES and PROCEDURES but sorrily no hint
> > how to access variables from a DLL nor how to make a
> > global CP-variable known to the extern C world.
> >
> > Does somebody have a hint for me ?
> >
> > regards
> >
> > Bernhard
> >
> > Bernhard Treutwein
> > Bernhard.Treutwein{([at]})nowhere.xy
> > --------------------------------------------
> >
> > To unsubscribe from this mailing list, send a message containing the
word
> > "unsubscribe" to:
> > blackbox-request{([at]})nowhere.xy
> >
> > To get a list of valid e-mail commands and instructions on their usage,
> send
> > a message containing the word "help" to the above address.
> >
> > Send any problem reports or questions related to this email list to the
> list
> > owner at
> > owner-blackbox{([at]})nowhere.xy
> >
> >
> >
>
>
Received on Mon Jun 26 2000 - 12:39:16 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:45 UTC