Author Topic: Format identifiers  (Read 15785 times)

Offline Borneq

  • Jr. Member
  • *
  • Posts: 26
Format identifiers
« on: August 19, 2010, 10:06:46 AM »
How long can be identifiers? What chars can cantain?
How long and contain chars can be in DLL function?

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Format identifiers
« Reply #1 on: August 19, 2010, 03:41:42 PM »
As it says in the friendly manual...

Quote
Valid characters in labels are letters, numbers, _, $, #, @, ~, ., and ?. The only characters which may be used as the first character of an identifier are letters, . (with special meaning: see section 3.9), _ and ?. An identifier may also be prefixed with a $ to indicate that it is intended to be read as an identifier and not a reserved word; thus, if some other module you are linking with defines a symbol called eax, you can refer to $eax in NASM code to distinguish the symbol from the register. Maximum length of an identifier is 4095 characters.

I couldn't tell ya about dll function names. Ask MicroSoft. I Imagine it's similar...

Best,
Frank