Page 1 of 1
Posted: Tue Jan 15, 2002 9:04 pm
by BackupUser
Restored from previous forum. Originally posted by michaelj.
1) Is it possible (or will it be soon) to create a DLL from PureBasic ?
2) How do I use the /REASM of the compiler. What are the steps, and the command-line syntax to successfully achieve this ?
3) [as it's been ignored in the other thread] How can I call gluLookAt(..) which expects GLdoubles. We only have floats ??
Many many thanks, for all help
Michael.
(Registered PureBasic user)
Posted: Tue Jan 15, 2002 9:19 pm
by BackupUser
Restored from previous forum. Originally posted by Rings.
1) Yes it is possible with nasm and the linker, only fred has to implement it into Purebasic.
2)First you have to use /commented to create a .ASM File of your PurebasicFile.
For example(Switch into the PureBasic Compilers Directory)
> PBCompiler test.pb /Commented
Now you have an asm file (Search for *.asm) and You can modify and learn
from it(as i do).If you want to compile it, do this:
> PBCompiler test.pb /REASM /EXE="Test.exe"
3)Oh, no expirience, sorry
Siggi
Posted: Tue Jan 15, 2002 9:39 pm
by BackupUser
Restored from previous forum. Originally posted by michaelj.
1) Yes it is possible with nasm and the linker, only fred has to implement it into Purebasic.
2)First you have to use /commented to create a .ASM File of your PurebasicFile.
For example(Switch into the PureBasic Compilers Directory)
> PBCompiler test.pb /Commented
Now you have an asm file (Search for *.asm) and You can modify and learn
from it(as i do).If you want to compile it, do this:
> PBCompiler test.pb /REASM /EXE="Test.exe"
3)Oh, no expirience, sorry
Siggi
Thanks for the help. Phase 2
1: Any examples how to do this ?? Anyone ?
2: I followed those steps, and got it to work. However, the reassembly produces different code, even if I don't alter the .asm file. Shouldn't they both be identical if nothing is changed ??
3: Anyone else ?
Michael.
(Registered PureBasic user)
Posted: Tue Jan 15, 2002 10:48 pm
by BackupUser
Restored from previous forum. Originally posted by fred.
It's not possible to use double in PB, sorry.. The only way I've found is to use inline ASM and dump a code which does it (use LccWin32 for example).
Fred - AlphaSND
Posted: Wed Jan 16, 2002 7:40 am
by BackupUser
Restored from previous forum. Originally posted by Rings.
1: Any examples how to do this ?? Anyone ?
Yes, but you need the nasm package from the web and of course a bit
of asm.Well i send you some sources.
2: I followed those steps, and got it to work. However, the reassembly produces different code, even if I don't alter the .asm file. Shouldn't they both be identical if nothing is changed ??
uups i did not know about this.Fred can explain it (hope so)
Siggi