Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
12 crawler(s) on-line.
 44 guest(s) on-line.
 1 member(s) on-line.


 Gunnar

You are an anonymous user.
Register Now!
 Gunnar:  49 secs ago
 danwood:  19 mins ago
 Matt3k:  25 mins ago
 DiscreetFX:  28 mins ago
 K-L:  29 mins ago
 zipper:  29 mins ago
 Poison:  35 mins ago
 fatbob_gb:  36 mins ago
 amigakit:  42 mins ago
 matthey:  52 mins ago

/  Forum Index
   /  Amiga OS4.x \ Workbench 4.x
      /  AmigaOS 4.1 Classic memory consumption
Register To Post

Goto page ( Previous Page 1 | 2 | 3 )
PosterThread
itix 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 13:19:06
#41 ]
Elite Member
Joined: 22-Dec-2004
Posts: 3398
From: Freedom world

@billyfish

Quote:

Have you got some examples of this?


I have not built statistics but it appears to be case with most executables. Maybe not so often these days, my last experiments with OS4 executables were about five years ago (os4emu).

Quote:

One thing I would love to see in Codebench would be the ability to have separate debug and release builds with debug symbols and optimisation respectively. Of course if you're using makefiles directly, it's easy to add a BUILD= type switch


gcc -O3 source.c -o executable.db
strip -s executable.db -o executable

You get binary with debug and without debug information. Haveing separate build without optimizations is not very useful.

_________________
Amiga Developer
Amiga 500, Efika, Mac Mini and PowerBook

 Status: Offline
Profile     Report this post  
broadblues 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 15:15:54
#42 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@Xenic

Quote:


If you are trying to squeeze every bit of memory, you could try stripping Odyssey to get another 10 MB of free memory when Odyssey is running. The downside is that you won't get as much information in Grim Reaper if Odyssey crashes.


He could but it would be pretty pointless as debug info is not loaded into memory.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 15:20:56
#43 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@itix

Quote:

If you are lazy to not strip executables (most OS4 developers dont) you get large executables.


What is lazy about it? And unless you are building with full debug (ie -gstabs) the % increase is relatively small and doesn't affect run time memory usage.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
broadblues 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 15:23:40
#44 ]
Amiga Developer Team
Joined: 20-Jul-2004
Posts: 4446
From: Portsmouth England

@billyfish

Quote:

One thing I would love to see in Codebench would be the ability to have separate debug and release builds with debug symbols and optimisation respectively.


By default codebench builds the debug version and strips it to a sepaerate copy, and so does what you ask already (exept the non optimmised version whoch is useful only for certain specialist debuging senarios and should be inlficted on users.

_________________
BroadBlues On Blues BroadBlues On Amiga Walker Broad

 Status: Offline
Profile     Report this post  
pavlor 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 15:27:13
#45 ]
Elite Member
Joined: 10-Jul-2005
Posts: 9598
From: Unknown

@broadblues

Quote:
He could but it would be pretty pointless as debug info is not loaded into memory.


Well, I thought Odyssey is now faster, but that may be placebo effect.

 Status: Offline
Profile     Report this post  
itix 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 16:35:44
#46 ]
Elite Member
Joined: 22-Dec-2004
Posts: 3398
From: Freedom world

@broadblues

Quote:

What is lazy about it? And unless you are building with full debug (ie -gstabs) the % increase is relatively small and doesn't affect run time memory usage.


Maybe lazy is wrong word but difference in executable size is huge.

@pavlor
Quote:

Well, I thought Odyssey is now faster, but that may be placebo effect.


It is placebo. Stripped executables dont run faster than unstripped.

_________________
Amiga Developer
Amiga 500, Efika, Mac Mini and PowerBook

 Status: Offline
Profile     Report this post  
billyfish 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 18:09:05
#47 ]
Member
Joined: 17-Sep-2008
Posts: 32
From: Unknown

@itix

Quote:

itix wrote:

I have not built statistics but it appears to be case with most executables. Maybe not so often these days, my last experiments with OS4 executables were about five years ago (os4emu).


That might have been the case at that time, but Codebench uses the stripping technique that you suggested

Quote:

You get binary with debug and without debug information. Haveing separate build without optimizations is not very useful.


That's not true. I tend to have something like

#ifdef _DEBUG
#define CARTESIAN_COORDS_DEBUG (STM_LEVEL_INFO)
#else
#define CARTESIAN_COORDS_DEBUG (STM_LEVEL_NONE)
#endif

at the top of my source files and then have sections like

#if CARTESIAN_COORDS_DEBUG > STM_LEVEL_FINE
PrintLog (STM_LEVEL_FINE, "*** START OF PLANE VECTOR ***\n");
PrintCartesianCoords (coord1_p, GetLogOutput ());
PrintCartesianCoords (coord2_p, GetLogOutput ());
PrintCartesianCoords (coord3_p, GetLogOutput ());
PrintCartesianCoords (&first_vector, GetLogOutput ());
PrintCartesianCoords (&second_vector, GetLogOutput ());
PrintCartesianCoords (result_p, GetLogOutput ());
#endif

in the code for various debugging messages, etc. and I don't want these in the release build of my software. By having a debug build where _DEBUG is defined and a release build where it is not will give the conditional compilation of the code. The stripping technique can't do this.

cheers

billy

 Status: Offline
Profile     Report this post  
itix 
Re: AmigaOS 4.1 Classic memory consumption
Posted on 27-Dec-2014 18:54:08
#48 ]
Elite Member
Joined: 22-Dec-2004
Posts: 3398
From: Freedom world

@billyfish

Yes you are right about debug messages. It is unfortunately something what you cant attach externally to executables :) Often it is very practical to hand out "fat" betas with debug messages so you get feedback quicker.

Last edited by itix on 27-Dec-2014 at 06:56 PM.

_________________
Amiga Developer
Amiga 500, Efika, Mac Mini and PowerBook

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle