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)
3 easy (??) questions...
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
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
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
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by michaelj.
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)
Thanks for the help. Phase 21) 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
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)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
of asm.Well i send you some sources.
Siggi
Yes, but you need the nasm package from the web and of course a bit1: Any examples how to do this ?? Anyone ?
of asm.Well i send you some sources.
uups i did not know about this.Fred can explain it (hope so)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 ??
Siggi