WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Question to the Compiler FLAG "Os"  (Read 2174 times)

Offline halma

  • Full Member
  • ***
  • Posts: 164
Question to the Compiler FLAG "Os"
« on: July 18, 2014, 04:51:30 AM »
hi ;-)

i have an question to the compiler flag "Os" 

gcc.gnu.org says the compiler flag "Os" is --->  "Optimize for size"

so my question is:
while i try to comile the xen-tools, so long i use the "Os" flag i run into compiler error ..  is the "Os" really needed and if i dont use it is it just the binary Size what is not optimized or  may arise, other disadvantages ?

thats the reason why i am asking:
http://lists.xenproject.org/archives/html/xen-users/2014-07/msg00303.html

thanks all
best regards
Halma
« Last Edit: July 18, 2014, 04:57:13 AM by halma »
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: Question to the Compiler FLAG "Os"
« Reply #1 on: July 18, 2014, 06:05:51 AM »
The idea is that tc should be as small as possible, but if "-Os" doesn't work, you can either omit it or use "-O2".

Offline halma

  • Full Member
  • ***
  • Posts: 164
Re: Question to the Compiler FLAG "Os"
« Reply #2 on: July 18, 2014, 06:36:57 AM »
hi juanito

thanks for the reply .. ok let me try what -02 will produce ...

many thanks
best regards
Halma
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline halma

  • Full Member
  • ***
  • Posts: 164
Re: Question to the Compiler FLAG "Os"
« Reply #3 on: July 18, 2014, 07:05:22 AM »
great juanito the "O2" compiler flag seems to be working ;-)

thank you very much
best regards
Halma
« Last Edit: July 18, 2014, 07:17:18 AM by halma »
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol