kos memory usage

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
histat
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 13
https://www.artistsworkshop.eu/meble-kuchenne-na-wymiar-warszawa-gdzie-zamowic/
Joined: Sat Mar 16, 2013 2:28 pm
Has thanked: 2 times
Been thanked: 3 times

kos memory usage

Post by histat »

How can I reduce the memory usage of kos?
trick arch_auto_init() already
I have removed unnecessary items.

I think there is a lot of call sbrk from startup
User avatar
Ian Robinson
DC Developer
DC Developer
Posts: 116
Joined: Mon Mar 11, 2019 7:12 am
Has thanked: 209 times
Been thanked: 41 times

Re: kos memory usage

Post by Ian Robinson »

histat wrote: Sun Oct 16, 2022 4:44 pm How can I reduce the memory usage of kos?
trick arch_auto_init() already
I have removed unnecessary items.

I think there is a lot of call sbrk from startup
Can you explain more what trick arch_auto_init() already?
You can use -0s to reduce file size and make sure all debug is turned
off and re build..
kos2.0 uses a lot more ram then older kos 1.3 just look at the kos2.0 libkallisti.a it's 3.7mb
it has a lot of code for network stack and other things..

Not sure how your going to make it use less and what is I have removed unnecessary items?
histat
DCEmu Cool Newbie
DCEmu Cool Newbie
Posts: 13
Joined: Sat Mar 16, 2013 2:28 pm
Has thanked: 2 times
Been thanked: 3 times

Re: kos memory usage

Post by histat »

>>
Can you explain more what trick arch_auto_init() already?
You can use -0s to reduce file size and make sure all debug is turned
off and re build..
kos2.0 uses a lot more ram then older kos 1.3 just look at the kos2.0 libkallisti.a it's 3.7mb
it has a lot of code for network stack and other things..

Not sure how your going to make it use less and what is I have removed unnecessary items?
>>

Thanks for the reply.
Recently changed development environment to kos
I changed my DC port of openlara and
I have investigated the memory usage.
I think the use is simply compared to libronin.

https://github.com/KallistiOS/KallistiO ... nel/init.c
You can define arch_auto_init() override
Linking before the library
These users thanked the author histat for the post:
Ian Robinson
Post Reply