Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

 
8. ERROR AND WARNINGS

Error line have following format:

  kind:module:line:message

kind - type of message, can be:
    'error'   - error message
    'warning' - warning message
    'fatal'   - fatal error

module - name of module where error was occurred
line   - error on line
message- description of error/warning

'module' and 'line' part is something different if errors occurs in macros. If we have:

  ; module 'test.asm'

  .macro Macro1

     goto whe  ; error

  .endm
  .macro Macro2 1
     where = #0
     Macro1
  .endm

  start:
    Macro2(start)

message will be:

 error:test.asm>>Makro2>>Makro1:1:undefined label 'whe'

if 'module' have '>>' that means 'calling macro' and 'line' represents line in macro, not in file. So, upper error message means:

 error in module 'test.asm' calling macro 'Makro2'
 calling macro 'Makro1' at line 1

This is useful, because most languages that support macros can issue error on line that is not exist, or there is no error on that line.

 In 'message' part, often you will see word:

  <something 'something'>

Example:

  start:

   goto start qwerty
 error:test.asm:2:unexpected <identifier 'qwerty'>

Words enclosed in < > represents 'detailed description' of error.
 

[PREV][INDEX][NEXT]