Re: [hatari-devel] Hatari 1.6.1 test build for Mac OS X

[ Thread Index | Date Index | More Archives ]


On sunnuntai 15 tammikuu 2012, Eero Tamminen wrote:
> On sunnuntai 15 tammikuu 2012, Bob Carpenter wrote:
> > @Stefan: The default cmake file creates in debug mode.

What that means?

Hatari CMakefiles.txt sets the default build type to "Release" when
nothing else is specified:
        set(CMAKE_BUILD_TYPE Release)

> > I
> > changed the release option of every item in the Hatari project to
> > Release and said "None" if I had a debugger choice. I wanted to strip
> > any debugging code out of the compiled Hatari. I also felt that leaving
> > the debug code might make it slower.
> Debug option should only:
> * enable asserts on non-performance critical parts of the code
>   (debugger etc)
> * leave the binary unstripped so that its performance and possible
>   crashes can be debugged
> It shouldn't have any really noticeable effect on performance.

Hm. It appears I wasn't quite up to date on what Hatari CMake files
do for different build types (IMHO CMake is pretty confusing in that

CMakeCache.txt tells:
//Flags used by the compiler during debug builds.

//Flags used by the compiler during release minsize builds.

//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).

//Flags used by the compiler during Release with Debug Info builds.

And we have in CMakeFiles.txt:
# Building Hatari w/o optimization is no fun...
        set(CMAKE_C_FLAGS "-O ${CMAKE_C_FLAGS}")

I.e. plain "Debug" option builds with "-O" instead of "-O3" and
everything else except MINSIZEREL build type adds debug symbols.

I didn't find where & when stripping is done.


	- Eero

> > Also, my compilation only includes the SDL framework. The libpng
> > framework wasn't needed to create screenshots.  I can create a
> > screenshot without that framework being a part of
> Without libpng the screenshots are in BMP format and the AVI
> recording files are absolutely huge (completely uncompressed).
> > I don't have libportaudio included in my either.
> It's needed only to emulate the Falcon microphone.
> Atari programs being able to utilize that are really rare.
> 	- Eero

Mail converted by MHonArc 2.6.19+