The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ecube on March 04, 2009, 02:08:45 PM

Title: Global labels
Post by: ecube on March 04, 2009, 02:08:45 PM
example
glabel::

does global labels do anything special to the pe file file? or does does it work.
Title: Re: Global labels
Post by: Mark Jones on March 04, 2009, 03:22:46 PM
I think what you are asking is, do global jump labels do anything special to object files.

Try this, make two .asm files, one a regular console application and the other a "module" (no entrypoint or END statement, just procedures & data.) In the first file, call a global label which is only present in the second file. Assemble both to object code, then specify both .objs to the linker.

Title: Re: Global labels
Post by: ecube on March 05, 2009, 12:27:47 PM
why can't you just say what it does?
Title: Re: Global labels
Post by: Tedd on March 11, 2009, 04:22:46 PM
It might be that he doesn't know and isn't going to waste time finding out when that should be your job :P


I don't think it actually does anything to the resulting PE, it's just sugar for allowing you to access labels across separate modules (which is only useful if you split things into modules anyway.)