28 lines
937 B
Plaintext
28 lines
937 B
Plaintext
This demonstrates that linking can be done
|
|
at $FG,2$LOAD$FG$ time. This is the TempleOS answer
|
|
to $FG,2$OBJ$FG$ files.
|
|
|
|
Right-Click $FG,2$MakeFile.CPP.Z$FG$ and click $FG,2$INCLUDE$FG$ or
|
|
do the following:
|
|
|
|
1) Do a $LK,"Dir",A="MN:Dir"$() command
|
|
|
|
2) Right-Click on OD1.PRJ.Z and click $FG,2$AOT COMPILE$FG$.
|
|
Right-Click on OD2.PRJ.Z and click $FG,2$AOT COMPILE$FG$.
|
|
Right-Click on ODMain.PRJ.Z and click $FG,2$AOT COMPILE$FG$.
|
|
|
|
3) In any order, do the following and ignore warnings.
|
|
Right-Click on OD1.BIN.Z and click $FG,2$LOAD$FG$.
|
|
Right-Click on ODMain.BIN.Z and click $FG,2$LOAD$FG$.
|
|
Right-Click on OD2.BIN.Z and click $FG,2$LOAD$FG$.
|
|
|
|
4) Right-Click on ObjDemo.HPP.Z and click $FG,2$INCLUDE$FG$.
|
|
|
|
5) Type at the command-line:
|
|
$ID,2$$FG,2$>ObjDemo("Arg1","Arg2");
|
|
$ID,-2$
|
|
|
|
|
|
$FG,2$#include$FG$ the file $LK,"::/Adam/Utils/BinRep.CPP"$ and
|
|
call $LK,"BinRep",A="MN:BinRep"$() to analyze the $FG,2$.BIN.Z$FG$ files.
|