Frontend Tech + >> HBMAME / ARCADE64 / MESSUI
Previous thread Previous  View all threads Index   Next thread Next   Flat Mode Flat  

Haze
Reged: 09/23/03
Posts: 5242
Send PM
Re: Compiling for a single driver
01/27/21 04:31 PM


> Hi there... Im trying to update a single driver. I have removed all the other drivers
> from the .lst file, but when I compile, I still end up with a 138M hbmame64.exe... I
> thought there was an easy way to limit the build so it could compile and link pretty
> quick?
>
> I tried with SOURCES= in the make command to a single driver, but my hbmame64.exe was
> still 138M.
>
> make PTR64=1 TARGET=hbmame SOURCES=/src/hbmame/drivers/mhavoc.cpp
>
> thanks!

The main problem with linking is not MAME, or the number of drivers, but the default linker being absolute awful. Even on a single driver build, from an SSD, it can take 8 minutes to link here for every minor change.

If you type
set ARCHOPTS=-fuse-ld=lld
before doing the initial 'make' that builds the scripts, then you use the alternate linker, which links, basically instantaneously.

Quite how / why the default linker is so bad I don't know.

There are downsides to this, I believe it was mentioned it doesn't work properly with the debug symbols and such (haven't tested, as I haven't needed to recently) but for day to day MAME development it's basically essential.







Entire thread
Subject Posted by Posted on
* Compiling for a single driver mhavoc 01/25/21 04:03 AM
. * Re: Compiling for a single driver Haze  01/27/21 04:31 PM
. * Re: Compiling for a single driver Osso1  01/27/21 09:29 AM
. * Re: Compiling for a single driver mhavoc  01/28/21 05:23 PM

Extra information Permissions
Moderator:  Robbbert 
0 registered and 3 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 738