When I compile my program with
pbcompiler -c laby.pb
I get the commented Assembler outout.
Then I can Assemble it with
fasm -m 100000 laby.asm
Which gives me a Object file laby.o
But how do I call the linker then to get the final program?
How to call linker?
As far as i know you can't do it like this because the PB libs aren't availabe in a linkable format if you're not compiling from the PBCompiler..
What you should do is replacing the FASM exe with a dummy file that pass the correct switches to the real FASM exe and then pass the output from FASM to the PBCompiler..
What you should do is replacing the FASM exe with a dummy file that pass the correct switches to the real FASM exe and then pass the output from FASM to the PBCompiler..
I was more thinking of making a small PB program that uses the 'ProgramParameter()' function and use the stdin/out functions that i saw the other day here on the forum..
Correct me if i'm wrong (i'm not really used to linux) but isn't the very same original switch '-m 25000' passed to fasm aswell with the script you made, thus overriding the previous switch?
Correct me if i'm wrong (i'm not really used to linux) but isn't the very same original switch '-m 25000' passed to fasm aswell with the script you made, thus overriding the previous switch?
