NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on November 21, 2004, 02:53:47 AM

Title: Suggested fix for Nasm documentation
Post by: nobody on November 21, 2004, 02:53:47 AM
Hello,

Correct me if I'm wrong! However.....

In the Nasm manual there is no formal specification of the MAXIMUM LENGTH labels are permitted to be.

Of course I did some experimenting and found that 200 character labels work fine.

However it would be nice if the manual formally documented the maximum allowable label length (which may be "only limited by memory restraints").

Also consider different situations eg %define, local labels etc.
Title: Re: Suggested fix for Nasm documentation
Post by: Frank Kotler on November 22, 2004, 08:48:30 PM
Good point. That info probably should be in the doc. I'd have to research what the value is - 4096, I think... or 4095, perhaps: 4096 exactly has been reported buggy in some versions, IIRC. Honestly, I never tried a 4096-byte identifier to test it... seems like "enough" bytes are available... but there *is* some number that's maximum, and it *should* be documented.

Thanks for the suggestion!

Best,
Frank
Title: Re: Suggested fix for Nasm documentation
Post by: nasm64developer on November 23, 2004, 02:06:31 PM
See RFE #893507.

The limit is 4095.

In my version I have eliminated that.
Title: Re: Suggested fix for Nasm documentation
Post by: nobody on December 11, 2004, 10:17:46 PM
Thanks for your replies.

4000 charcters is more than enough for a label. Nasm is well designed ;).