From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: several questions (symify, dynamic labels, cpu clock) Date: 20 Jan 2003 02:42:37 GMT Organization: Cornell University Lines: 22 Sender: asu1 AT cornell DOT invalid (on pool-141-149-206-129.syr.east.verizon.net) Message-ID: References: NNTP-Posting-Host: pool-141-149-206-129.syr.east.verizon.net X-Trace: news01.cit.cornell.edu 1043030557 6072 141.149.206.129 (20 Jan 2003 02:42:37 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 20 Jan 2003 02:42:37 GMT User-Agent: Xnews/5.04.25 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Lars Hansen" wrote in news:b0ff15$lql$1 AT news DOT online DOT de: > 2. how can I get the address of a dynamic label which is in a function > I am not in? So if I am somewhere in int main() and want the address > of the dynamic label in function void do_nothing(void){dynalabel1: asm > nop;} (actually labels are not dynamic, gotos can be), what do I have > to do? from http://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html: "You may not use this mechanism to jump to code in a different function. If you do that, totally unpredictable things will happen. The best way to avoid this is to store the label address only in automatic variables and never pass it as an argument." -- A. Sinan Unur asu1 AT c-o-r-n-e-l-l DOT edu Remove dashes for address Spam bait: mailto:uce AT ftc DOT gov