22.4 Loader (load_4th). 4tH 4tH Forth compiler
광고
광고
CHAPTER 22. ERRORS GUIDE
H
INTS
:
407
1. Use a string that contains at least one single character.
2. Delete all superfluous whitespace characters between [DEFINED], [UNDEFINED],
[CHAR], CHAR or INCLUDE and the string following it.
M
ESSAGE
:
W
ORDS
:
Duplicate name
All defining words
(#27 M4DUPNAM)
E
XAMPLE
:
: TH CELLS + ;
C
AUSE
: The name you used for a definition is already in use by 4tH or your own program.
H
INTS
: Use a different name.
M
ESSAGE
:
W
ORDS
:
Name too long
All defining words
(#28 M4BADNAM)
E
XAMPLE
:
VARIABLE JUSTTOOLONGANAMEFORCOMFORT
C
AUSE
: The name you used for a definition is too long.
H
INTS
: Use a shorter name.
M
ESSAGE
:
W
ORDS
:
Compilation aborted
[ABORT]
E
XAMPLE
:
[ABORT]
(#29 M4CABORT)
C
AUSE
:
H
INTS
:
An [ABORT] directive was encountered during compilation.
The original programmer must have had a reason to abort compilation in this particular circumstance. See the program for additional information.
22.4
Loader (load_4th)
Since the loader works with complete segments, the words don’t have to do much with fixing an error. Therefore, it reports that nothing has been loaded (word 0) or everything has been loaded (the last word).
M
ESSAGE
:
W
ORDS
:
No errors
(#0 M4NOERRS)
Not applicable
E
XAMPLE
: Not applicable
CHAPTER 22. ERRORS GUIDE
C
AUSE
:
H
INTS
:
A program was succesfully loaded.
Keep up the good work. ;)
408
M
ESSAGE
:
W
ORDS
:
Out of memory
Not applicable
(#1 M4NOMEM)
E
XAMPLE
: Not applicable
C
AUSE
: There was not enough free memory to allocate the header, the Code Segment or the String Segment.
H
INTS
:
1. Reduce the amount of memory your program allocates and recompile.
2. Add more physical memory or increase swap space.
3. Recompile 4tH under another compiler (flat memory space) or another memory model.
M
ESSAGE
:
Bad object
(#2 M4BADOBJ)
W
ORDS
: Not applicable
E
XAMPLE
: Not applicable
C
AUSE
:
1. You tried to load a file, that was not an HX-file.
2. You tried to load an HX-file from a previous version of 4tH.
3. You tried to load an HX-file for a different application.
4. You tried to load an HX-file for a different architecture.
5. You tried to load an inconsistent HX-file.
H
INTS
:
1. Use a proper HX-file.
2. Recompile the source, using the current 4tH compiler.
3. If the source is compatible, you might recompile the source, using your own 4tH compiler.
4. If the source is compatible, you might recompile the source, using your own 4tH compiler.
5. Recompile the source, using your own 4tH compiler.
다운로드
광고