[BSD] gcc & assembler
Zoltan Glozik
zglozik at iolfree.ie
2002. Nov. 15., P, 10:05:24 CET
Szia,
Itt van a leiras:
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Spec-Files.html#Spec%20Files
Es itt van egy Linux-os file:
---
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}
*asm_final:
%|
*asm_options:
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
*cpp:
%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__}
%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}
*cpp_options:
%{C:%{!E:%eGNU C does not support -C without using -E}} %{std*} %{nostdinc*}
%{C} %{v} %{A*} %{I*} %{P} %{$} %I %{MD:-M -MF %W{!o: %b.d}%W{o*:%.d%*}}
%{MMD:-MM -MF %W{!o: %b.d}%W{o*:%.d%*}} %{M} %{MM} %W{MF*} %{MG} %{MP}
%{MQ*} %{MT*} %{M|MD|MM|MMD:%{o*:-MQ %*}}
%{!no-gcc:-D__GNUC__=%v1 -D__GNUC_MINOR__=%v2 -D__GNUC_PATCHLEVEL__=%v3}
%{!undef:%{!ansi:%{!std=*:%p}%{std=gnu*:%p}} %P} %{trigraphs} %c
%{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}}
%{fno-inline|O0|!O*:-D__NO_INLINE__} %{ffast-math:-D__FAST_MATH__}
%{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=short\ unsigned\ int}
%{fshow-column} %{fno-show-column} %{fleading-underscore}
%{fno-leading-underscore} %{foperator-names} %{fno-operator-names}
%{ftabstop=*} %{remap} %{g3:-dD} %{W*} %{w} %{pedantic*} %{H} %{d*} %C %{D*}
%{U*} %{i*} %Z %i %{E:%{!M*:%W{o*}}}
*trad_capable_cpp:
%{traditional|ftraditional|traditional-cpp:trad}cpp0
*cc1:
%(cc1_cpu) %{profile:-p}
*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}}
%1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{g*} %{O*} %{W*} %{w}
%{pedantic*} %{std*} %{ansi} %{traditional} %{v:-version} %{pg:-p} %{p}
%{f*} %{aux-info*} %{Qn:-fno-ident} %{--help:--help}
%{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j}
*cc1plus:
*endfile:
%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s
*link:
-m elf_i386 %{shared:-shared} %{!shared: %{!ibcs: %{!static:
%{rdynamic:-export-dynamic} %{!dynamic-linker:-dynamic-linker
/lib/ld-linux.so.2}} %{static:-static}}}
*lib:
%{shared: -lc} %{!shared: %{mieee-fp:-lieee} %{pthread:-lpthread}
%{profile:-lc_p} %{!profile: -lc}}
*libgcc:
-lgcc
*startfile:
%{!shared: %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s}
%{!p:%{profile:gcrt1.o%s} %{!profile:crt1.o%s}}}} crti.o%s
%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}
*switches_need_spaces:
*signed_char:
%{funsigned-char:-D__CHAR_UNSIGNED__}
*predefines:
-D__ELF__ -Dunix -Dlinux -Asystem(posix)
*cross_compile:
0
*version:
2.96
*multilib:
. ;
*multilib_defaults:
*multilib_extra:
*multilib_matches:
*multilib_exclusions:
*linker:
collect2
*link_libgcc:
%D
*cpp_cpu_default:
-D__tune_i386__
*cpp_cpu:
-Acpu(i386) -Amachine(i386) %{!ansi:-Di386} -D__i386 -D__i386__
%{march=i386:%{!mcpu*:-D__tune_i386__ }}%{march=i486:-D__i486 -D__i486__
%{!mcpu*:-D__tune_i486__ }}%{march=pentium|march=i586:-D__pentium -D__pentiu
m__
%{!mcpu*:-D__tune_pentium__ }}%{march=pentiumpro|march=i686:-D__pentiumpro -
D__pentiumpro__
%{!mcpu*:-D__tune_pentiumpro__ }}%{march=k6:-D__k6 -D__k6__
%{!mcpu*:-D__tune_k6__ }}%{march=athlon:-D__athlon -D__athlon__
%{!mcpu*:-D__tune_athlon__ }}%{m386|mcpu=i386:-D__tune_i386__ }%{m486|mcpu=i
486:-D__tune_i486__ }%{mpentium|mcpu=pentium|mcpu=i586:-D__tune_pentium__ }%
{mpentiumpro|mcpu=pentiumpro|mcpu=i686:-D__tune_pentiumpro__ }%{mcpu=k6:-D__
tune_k6__ }%{mcpu=athlon:-D__tune_athlon__ }%{!march*:%{!mcpu*:%{!m386:%{!m4
86:%{!mpentium*:%(cpp_cpu_default)}}}}}
*cc1_cpu:
%{!mcpu*: %{m386:-mcpu=i386} %{m486:-mcpu=i486} %{mpentium:-mcpu=pentium}
%{mpentiumpro:-mcpu=pentiumpro}}
*link_command:
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S: %(linker) %l %X %{o*} %{A}
%{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t} %{u*} %{x} %{z} %{Z}
%{!A:%{!nostdlib:%{!nostartfiles:%S}}} %{static:} %{L*} %(link_libgcc) %o
%{!nostdlib:%{!nodefaultlibs:%G %L %G}}
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}
---
Udv,
Z2
> -----Original Message-----
> From: owner-freebsd at dab.iit.uni-miskolc.hu
> [mailto:owner-freebsd at dab.iit.uni-miskolc.hu]On Behalf Of Hajdú Zoltán
> Sent: Friday, 15 November, 2002 08:46
> To: Zoltan Glozik
> Subject: Re: [BSD] gcc & assembler
>
>
> On 2002. 11. 14., Zoltan Glozik has wisely spoken:
>
> > Szia,
>
> > Nem tudom, hogy ismered-e a gcc 'specs' file-t, itt lehet
> beallitani milyen
> > opciokkal milyen alprocesszeket hivjon: a gcc maga semmit nem
> csinal csak
> > masokat hivogat. A 'gcc -v' kiirja neked, hogy honnan veszi a
> specs file-t,
> > es ha a -v opciot megadod forditasnal, akkor pontosan latod mit
> hiv meg es
> > milyen parameterekkel.
>
> > Peldaul atnevezheted az nasm-et as-re es a megfelelo opciokat
> beallithatod a
> > specs file-ban.
>
> A gcc -v re azt mondja, hogy Using builtin specs. Ha neked van egy
> külső spec file-od, elküldenéd, mert a forrásból nem sikerült
> kibogarásznom, hogy milyen formátumban kéri az adatokat.
>
> Üdv:
>
> HZX
>
További információk a(z) BSD levelezőlistáról