ANTICHAT.XYZ    VIDEO.ANTICHAT.XYZ    НОВЫЕ СООБЩЕНИЯ    ФОРУМ  
Баннер 1   Баннер 2
Antichat снова доступен.
Форум Antichat (Античат) возвращается и снова открыт для пользователей. Здесь обсуждаются безопасность, программирование, технологии и многое другое. Сообщество снова собирается вместе.
Новый адрес: forum.antichat.xyz
Вернуться   Форум АНТИЧАТ > Оффтоп > Болталка
   
Ответ
 
Опции темы Поиск в этой теме Опции просмотра

gcc
  #1  
Старый 08.10.2005, 15:21
Аватар для zuzuk
zuzuk
Новичок
Регистрация: 02.10.2005
Сообщений: 10
Провел на форуме:
101120

Репутация: 2
По умолчанию gcc

Народ! Я скачал компиялтор gcc...Faq на английском, помогите че там и куда?
 
Ответить с цитированием

  #2  
Старый 08.10.2005, 15:25
Аватар для Антошка2003
Антошка2003
Постоянный
Регистрация: 03.04.2005
Сообщений: 610
Провел на форуме:
3238231

Репутация: 165


По умолчанию

а чё на русском ничего не нашёл чтоль?
 
Ответить с цитированием

  #3  
Старый 08.10.2005, 15:36
Аватар для KEZ
KEZ
Banned
Регистрация: 18.05.2005
Сообщений: 1,981
Провел на форуме:
1941233

Репутация: 2726


По умолчанию

Незнаю нафиг ты его качал если он есть во всех дистрибутивах по дефолту.
$ man gcc
вот те мануал
$ gcc --help
вот те хелп...

Цитата:
помогите че там и куда?
Конечно я тебе могу рассказать что там и куда и зачем но лаже того что знаю о нем я (НЕ ВСЁ, точнее мало...) уже займет 10 страниц...
 
Ответить с цитированием

  #4  
Старый 08.10.2005, 15:37
Аватар для k1b0rg
k1b0rg
Тут может быть ваша реклама.
Регистрация: 30.07.2005
Сообщений: 1,243
Провел на форуме:
4520553

Репутация: 1316


По умолчанию

gcc -o file
 
Ответить с цитированием

  #5  
Старый 08.10.2005, 16:11
Аватар для zuzuk
zuzuk
Новичок
Регистрация: 02.10.2005
Сообщений: 10
Провел на форуме:
101120

Репутация: 2
По умолчанию

чет нехрена не понял, где там ваще... самое первое че запускать?
 
Ответить с цитированием

  #6  
Старый 08.10.2005, 16:46
Аватар для w00d
w00d
Banned
Регистрация: 30.06.2005
Сообщений: 236
Провел на форуме:
333859

Репутация: 53
Отправить сообщение для w00d с помощью ICQ
По умолчанию

notepad, блин..

1. Пишешь код..
2. Сохраняешь source.c (например)
3. gcc -o source.c my_1st_program_on_c или просто gcc -o source.c
Вследствии чего получаешь исполняемый фаил
4. Запускаешь полученный фаил

ВСЁ!
 
Ответить с цитированием

  #7  
Старый 08.10.2005, 16:50
Аватар для w00d
w00d
Banned
Регистрация: 30.06.2005
Сообщений: 236
Провел на форуме:
333859

Репутация: 53
Отправить сообщение для w00d с помощью ICQ
По умолчанию

зы: Сходи по первой ссылке в моей подписи!
Ну если ничего не поймешь, то http://www.google.com/search?client=...utf-8&oe=utf-8
 
Ответить с цитированием

  #8  
Старый 10.10.2005, 00:02
Аватар для madnet
madnet
Умиротворенн
Регистрация: 09.12.2004
Сообщений: 996
Провел на форуме:
2386719

Репутация: 1384


Отправить сообщение для madnet с помощью ICQ
По умолчанию

gcc это просто компилятор, как компилить тебе уже сказали, если ты хочеш програмить под *nix, то тебе нужен IDE, например KDevelop
__________________

http://madnet.name - madnet - blog | homepage (Мысли, релизы, скрипты, софт)

http://antichat.ru - Лучший сайт по безопасности
irc.antichat.ru:7771 #antichat - общение online
ГАРАНТ ФОРУМА
 
Ответить с цитированием

  #9  
Старый 10.10.2005, 00:08
Аватар для KEZ
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
 
Ответить с цитированием

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

Репутация: 2726


По умолчанию

$ gcc --help

Цитата:
Options:
-pass-exit-codes Exit with highest error code from a phase
--help Display this information
(Use '-v --help' to display command line options of sub-processes)
-dumpspecs Display all of the built in spec strings
-dumpversion Display the version of the compiler
-dumpmachine Display the compiler's target processor
-print-search-dirs Display the directories in the compiler's search path
-print-libgcc-file-name Display the name of the compiler's companion library
-print-file-name=<lib> Display the full path to library <lib>
-print-prog-name=<prog> Display the full path to compiler component <prog>
-print-multi-directory Display the root directory for versions of libgcc
-print-multi-lib Display the mapping between command line options and
multiple library search directories
-Wa,<options> Pass comma-separated <options> on to the assembler
-Wp,<options> Pass comma-separated <options> on to the preprocessor
-Wl,<options> Pass comma-separated <options> on to the linker
-Xlinker <arg> Pass <arg> on to the linker
-save-temps Do not delete intermediate files
-pipe Use pipes rather than intermediate files
-time Time the execution of each subprocess
-specs=<file> Override builtin specs with the contents of <file>
-std=<standard> Assume that the input sources are for <standard>
-B <directory> Add <directory> to the compiler's search paths
-b <machine> Run gcc for target <machine>, if installed
-V <version> Run gcc version number <version>, if installed
-v Display the programs invoked by the compiler
-E Preprocess only; do not compile, assemble or link
-S Compile only; do not assemble or link
-c Compile and assemble, but do not link
-o <file> Place the output into <file>
-x <language> Specify the language of the following input files
Permissable languages include: c c++ assembler none
'none' means revert to the default behaviour of
guessing the language based on the file's extension

Options starting with -g, -f, -m, -O or -W are automatically passed on to
the various sub-processes invoked by gcc. In order to pass other options
on to these processes the -W<letter> options must be used.

For bug reporting instructions, please see:
<URL:http://bugzilla.redhat.com/bugzilla/>.
 
Ответить с цитированием
Ответ





Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
 


Быстрый переход




ANTICHAT.XYZ