OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:40 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Permission to change wiki.osdev.org/Pascal_Bare_Bones
PostPosted: Fri Jan 27, 2012 6:17 pm 
Offline
User avatar

Joined: Sat Oct 02, 2010 8:24 pm
Posts: 1
Location: Jakarta
on current http://wiki.osdev.org/Pascal_Bare_Bones, free pascal include RTTI and debug information to binary output kernel. It's useless and the kernel going to big.

I want to make some correction to compiling method.

Quote:
fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -Rintel -Tlinux kernel.pas

it's must be
Code:
fpc -Aelf -n -O3 -Op3 -Si -Sc -Sg -Xd -Rintel -Tlinux kernel.pas -CX -XXs

-CX - Create a smartlinked library
-XXs - Create smart link unit and strip all symbols from executable



and
Quote:
ld -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o

it's must be
Code:
ld --gc-sections -s -Tlinker.script -o kernel.obj stub.o kernel.o multiboot.o system.o console.o

--gc-sections - Remove unused sections
-s - strip all symbols


maybe somebody help me to change it. I don't have wiki account.

we have discussed this in http://forum.lazarus.freepascal.org/index.php/topic,15880.msg85788.html#msg85788

thanks

to moderator: "ups... sory #-o ,,, i think it's should be move to wiki board"


Top
 Profile  
 
 Post subject: Re: Permission to change wiki.osdev.org/Pascal_Bare_Bones
PostPosted: Sat Jan 28, 2012 2:01 am 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1110
Location: Tartu, Estonia
I think you need to become a member of the "wiki" group here in the forum. Access is free to all forum members and you'll instantly get editing rights for the wiki.

_________________
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS


Top
 Profile  
 
 Post subject: Re: Permission to change wiki.osdev.org/Pascal_Bare_Bones
PostPosted: Sat Jan 28, 2012 5:56 am 
Offline
Member
Member
User avatar

Joined: Sat Jan 15, 2005 12:00 am
Posts: 8561
Location: At his keyboard!
Hi,

ekowahyudin wrote:
maybe somebody help me to change it. I don't have wiki account.


You can give yourself access to edit the wiki. For more info see viewtopic.php?f=8&t=677 .


Cheers,

Brendan

_________________
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.


Top
 Profile  
 
 Post subject: Re: Permission to change wiki.osdev.org/Pascal_Bare_Bones
PostPosted: Sat Jan 28, 2012 6:28 am 
Offline
Member
Member
User avatar

Joined: Wed Oct 18, 2006 3:45 am
Posts: 9301
Location: On the balcony, where I can actually keep 1½m distance
One thing that I did notice in the linked thread is that the change in options do not "fix" anything but cosmetic changes for the poster, it does however introduce a probability that existing code can break for others as it does two things:
- disable RTTI support
- remove debugging information
People might not expect that.

_________________
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group