Author Topic: Suggested fix for Nasm documentation  (Read 17945 times)

nobody

  • Guest
Suggested fix for Nasm documentation
« 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.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Suggested fix for Nasm documentation
« Reply #1 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

nasm64developer

  • Guest
Re: Suggested fix for Nasm documentation
« Reply #2 on: November 23, 2004, 02:06:31 PM »
See RFE #893507.

The limit is 4095.

In my version I have eliminated that.

nobody

  • Guest
Re: Suggested fix for Nasm documentation
« Reply #3 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 ;).