easy way to create object or library files

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

easy way to create object or library files

Post 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...
Axolotl
Addict
Addict
Posts: 802
Joined: Wed Dec 31, 2008 3:36 pm

Re: easy way to create object or library files

Post 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.
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).
User_Russian
Addict
Addict
Posts: 1520
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: easy way to create object or library files

Post 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
User avatar
idle
Always Here
Always Here
Posts: 5840
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: easy way to create object or library files

Post 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.
Post Reply