Тема: gcc
Показать сообщение отдельно

  #9  
Старый 10.10.2005, 00:08
KEZ
Banned
Регистрация: 18.05.2005
Сообщений: 1,981
Провел на форуме:
1941233

Репутация: 2726


По умолчанию

Че за бред я програмлю под unix и без всякого IDE типа KDevelop, в kwrite в KDE все пишу. Обычный редактор.

Цитата:
gcc -o source.c my_1st_program_on_c или просто gcc -o source.c
Ну да, только ты посмотри сколько ещё опций есть кроме -o

просто вырезка
Цитата:
-msupersparc -mcypress

Convex Options
-margcount -mc1 -mc2 -mnoargcount

AMD29K Options
-m29000 -m29050 -mbw -mdw -mkernel-registers
-mlarge -mnbw -mnodw -msmall -mstack-check
-muser-registers

M88K Options
-m88000 -m88100 -m88110 -mbig-pic
-mcheck-zero-division -mhandle-large-shift
-midentify-revision -mno-check-zero-division
-mno-ocs-debug-info -mno-ocs-frame-position
-mno-optimize-arg-area -mno-serialize-volatile
-mno-underscores -mocs-debug-info
-mocs-frame-position -moptimize-arg-area
-mserialize-volatile -mshort-data-num -msvr3 -msvr4
-mtrap-large-shift -muse-div-instruction
-mversion-03.00 -mwarn-passed-structs

RS6000 Options

-------------
-fno-asm
Do not recognize asm, inline or typeof as a keyґ
word. These words may then be used as identifiers.
You can use __asm__, __inline__ and __typeof__ inґ
stead. `-ansi' implies `-fno-asm'.

-fno-builtin
Don't recognize built-in functions that do not beґ
gin with two leading underscores. Currently, the
functions affected include _exit, abort, abs, alloґ
ca, cos, exit, fabs, labs, memcmp, memcpy, sin,
sqrt, strcmp, strcpy, and strlen.

The `-ansi' option prevents alloca and _exit from
being builtin functions.

-fhosted
Compile for a hosted environment; this implies the
`-fbuiltin' option, and implies that suspicious
declarations of main should be warned about.
-------------------
-fsyntax-only -pedantic -pedantic-errors -w -W
-Wall -Waggregate-return -Wcast-align -Wcast-qual
-Wchar-subscript -Wcomment -Wconversion -Werror
-Wformat -Wid-clash-len -Wimplicit -Wimplicit-int
-Wimplicit-function-declaration -Winline
-Wlong-long -Wmain -Wmissing-prototypes
-Wmissing-declarations -Wnested-externs -Wno-import
-Wparentheses -Wpointer-arith -Wredundant-decls
-Wreturn-type -Wshadow -Wstrict-prototypes -Wswitch
-Wtraditional -Wtrigraphs -Wuninitialized -Wunused
-Wunused-function -Wunused-label -Wunused-parameter
-Wunused-variable -Wunused-value -Wwrite-strings

Debugging Options
-a -dletters -fpretend-float -g -glevel -gcoff
-gxcoff -gxcoff+ -gdwarf -gdwarf+ -gstabs -gstabs+
-ggdb -p -pg -save-temps -print-file-name=library