delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/19/17:33:54

From: Francisco Gochez <arcanix AT erols DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Referencing externs from assembly modules
Date: 19 Oct 1996 16:20:33 GMT
Organization: None
Lines: 10
Message-ID: <54av4h$n5i@boursy.news.erols.com>
NNTP-Posting-Host: spg-as40s44.erols.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

The GAS documentation states that any undefined symbol is automatically 
assumed to be external.  I have an assembly routine which might be 
considerably faster if I can use external variables, but I haven't been 
able to so far.  Whenever I use them, I get stack faults.  For example, 
say I have the following:
unsigned char *map;
I was using "_map" to refer to it from the assembly module, but it won't 
work.  I don't want to post the rountine , as it's somewhat long, but I 
will if it is really needed.  Can anyone help me out?

- Raw text -


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