delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/26/23:30:35

From: Peter Gerwinski <peter AT agnes DOT dida DOT physik DOT uni-essen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GPC 2.0 - Accessing External Structures
Date: 27 Feb 1998 00:48:09 GMT
Organization: Universitaet Essen
Lines: 20
Message-ID: <6d52g9$f184@mx2.hrz.uni-essen.de>
References: <6d2hca$as7$1 AT titan DOT globalserve DOT net>
NNTP-Posting-Host: agnes.Dida.Physik.Uni-Essen.DE
User-Agent: tin/pre-1.4-971123 (UNIX) (Linux/2.0.33 (i486))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Curtis Wensley <eto AT globalserve DOT net> wrote:

> I was wondering if it is possible to access external variables with the GPC
> compiler?

Var
  foo: __external__ Integer;
  bar: __asmname__ 'bar' Integer;

The latter one might only work in more recent (beta) versions
of GPC than 2.0; I have not tested it with gpc-2.0.

Hope this helps,

    Peter
-- 
    Peter Gerwinski, Essen, Germany, free physicist and programmer
Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997
PGP key fingerprint:  AC 6C 94 45 BE 28 A4 96  0E CC E9 12 47 25 82 75
                Fight the SPAM! - http://maps.vix.com/

- Raw text -


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