Required memory of compiled executeable

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi Fred - Hi @ all
When starting an small PureBasic created executeable, this program will need of course some memory (often some MB´s on Windows) - Now my question... I dont know so much about internal Win32 working - memory/dll handling (instead of AmigaOS)... Is there any way to reduce the memory use for a program?? (i dont mean the use of DIMs or so, which need some memory too)...

I am not really sure.. i think the needed memory for a program is stored in the PE Fileheader and any section... isnt it? However.. is there any way to reduce the memory use for a program? :wink:



PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

No... Or just see which DLL are used and try to remove one if it's possible. But what's the point to gains some kb of mem on an OS which waste it ?

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by MrVainSCL.

Hi Fred
Thanks for fast answer... I was only wondering that some small (not special) appz need sometimes a lot of memory in my eyes.. 12-48 MB of WorkRam, so i was really wondering why does a (simple) app need so much memory on windows system... But now i think i know it... If you have to programs needing GDI.dll for example, this lib will stored 2 times into memory (due fact of memory protecting) instead of amiga, where the lib is loaded only once - isnt it?

It was just only very interested for me to know what/which is possible for the big memory use of a win32 app and if there would be a way to write appz needing less memory :wink:

Anyway many thanks fred...


PIII450, 256MB Ram, 6GB HD, RivaTNT, DirectX8.1, SB AWE64, Win2000 + all Updates...

greetz
MrVainSCL! aka Thorsten
Post Reply