You are not logged in.

#1 2005-03-25 22:44:22

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

gcc and bytes

Two questions:

1. Where does Arch has it's gcc settings? I know about makepkg.conf but I mean other than that.

2. How do you count bytes when using KB and MB.

like 878687834 Bytes = 878687834 /1024 KB  , and
8686876784847648 Bytes = 8686876784847648 /(1024**2) MB

or is it wrong?   :?


arch + gentoo + initng + python = enlisy

Offline

#2 2005-03-25 22:58:44

smith
Member
From: Crescent City, CA
Registered: 2005-02-19
Posts: 77

Re: gcc and bytes

I think your conversions are correct.

1 KB = 1024 Bytes
1 MB = 1024 KB = 1024 x 1024 Bytes

Not sure what gcc settings you're looking for..


I have nothing to say, and I am saying it.

Offline

#3 2005-03-25 23:15:04

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: gcc and bytes

gcc settings? I think they're compiled in (try gcc --version... I think it spits off a whole mess of crap)
you can also check in.... hmmm /usr/lib/i686-gcc-something, I can't recall the exact, but it has a whole mess of stuff there - like where std include files are....

Offline

#4 2005-03-25 23:52:19

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gcc and bytes

hello phrak,
yes I thougfht of that after i posted, that there are some compiled in settings that works if you don't specify it some other way,

Edit: couldn't find anything in the PKGBUILD,
or is gcc falling back on the same settings that itself was compiled with?


arch + gentoo + initng + python = enlisy

Offline

#5 2005-03-26 00:03:46

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: gcc and bytes

what specifically are you looking for? maybe that will help?

Offline

#6 2005-03-26 00:10:21

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gcc and bytes

these are  from makepkg.conf

export CARCH="i686"
export CHOST="i686-pc-linux-gnu"

# Pentium Pro/Pentium II/Pentium III+/Pentium 4/Athlon exclusive (binaries
# will use the P6 instruction set and only run on P6+ systems)
export CFLAGS="-march=i686 -O2 -pipe"
export CXXFLAGS="-march=i686 -O2 -pipe"

where does these come from if I'm not sourcing that file?


arch + gentoo + initng + python = enlisy

Offline

#7 2005-03-26 01:06:04

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: gcc and bytes

makepkg is a script.  It sources makepkg.conf.  I don't know if it answer your question.

Offline

#8 2005-03-26 02:11:50

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: gcc and bytes

xerxes2 wrote:

where does these come from if I'm not sourcing that file?

you want to know the defaults for -march and things like that?

if depends on the option... -O is for optimization... if it's not there, it just doesn't do it... same with -pipe i think

as for -march, i'd assume if unspecified it uses what system it's running on

Offline

#9 2005-03-26 02:42:40

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: gcc and bytes

i think autoconf grabs it from running config.guess. Same with host and target..
not positive, but that is my initial impression.


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#10 2005-03-26 22:26:27

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gcc and bytes

yes, that was what I meant cactus,

what settings is used when compiling without makepkg,


arch + gentoo + initng + python = enlisy

Offline

Board footer

Powered by FluxBB