I have found the C backend to be faster than the ASM, but have a lot of modules that use ASM; I know i can put some of them in a DLL; but the overhead slows things down, defeating the purpose of using hand-optimized asm.
It would be nice to be able to produce some sort of .obj or library that can be linked at compile time that is native & officially supported by PB, rather than hacks around it which, historically, are "unsupported" and therefore, may break at any time...
easy way to create object or library files
Re: easy way to create object or library files
I am interested in a working solution, too.
Isn't the SDK\LibraryMaker.exe a/the tool with which you can do that?
I have never tried and found the following on my search.
And don't forget, there used to be a tool called tailbite, or something like that.?!?
MLF: Make Lib Factory For PureBasic .. but the Github page linked in the topic is no longer available.
Isn't the SDK\LibraryMaker.exe a/the tool with which you can do that?
I have never tried and found the following on my search.
And don't forget, there used to be a tool called tailbite, or something like that.?!?
MLF: Make Lib Factory For PureBasic .. but the Github page linked in the topic is no longer available.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
-
- Addict
- Posts: 1520
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: easy way to create object or library files
You can use my Pbcex tool it does precompiled static objects with c backend.
It allows you to use c libs, modify the comand lines and even compile with clang rather than gcc you can also make precompiled objects.
Of course a native solution would be better.
It allows you to use c libs, modify the comand lines and even compile with clang rather than gcc you can also make precompiled objects.
Of course a native solution would be better.