Page 1 of 1

easy way to create object or library files

Posted: Thu Jun 29, 2023 12:17 am
by jassing
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...

Re: easy way to create object or library files

Posted: Thu Jun 29, 2023 4:32 pm
by Axolotl
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.

Re: easy way to create object or library files

Posted: Thu Jun 29, 2023 10:13 pm
by User_Russian
Axolotl wrote: Thu Jun 29, 2023 4:32 pmGithub page linked in the topic is no longer available.
https://backups.rsbasic.de/MLF-Dev-master.zip

Re: easy way to create object or library files

Posted: Sat Jul 01, 2023 11:06 am
by idle
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.