From aa48db41ee188f5193b12171988d8f7c610ec066 Mon Sep 17 00:00:00 2001 From: Rui Alves Date: Thu, 24 Oct 2019 03:09:26 +0100 Subject: [PATCH] gcc: add pt_BR translation (#3399) --- pages.pt_BR/common/gcc.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages.pt_BR/common/gcc.md diff --git a/pages.pt_BR/common/gcc.md b/pages.pt_BR/common/gcc.md new file mode 100644 index 000000000..9b43b4f0c --- /dev/null +++ b/pages.pt_BR/common/gcc.md @@ -0,0 +1,24 @@ +# gcc + +> Compilador de arquivos de código fonte C e C++, efetuando também as fases de pré-processamento, assembling e linking. +> Mais informações: . + +- Compilar múltiplos arquivos de código fonte, produzindo um arquivo executável: + +`gcc {{arquivo_fonte1.c}} {{arquivo_fonte2.c}} -o {{arquivo_executável}}` + +- Habilitar avisos durante a compilação: + +`gcc {{arquivo_fonte.c}} -Wall -Og -o {{arquivo_executável}}` + +- Incluir bibliotecas de um local diferente: + +`gcc {{arquivo_fonte.c}} -o {{arquivo_executável}} -I{{caminho/para/header}} -L{{caminho/para/biblioteca}} -l{{nome_biblioteca}}` + +- Compilar o código fonte para instruções Assembler: + +`gcc -S {{arquivo_fonte.c}}` + +- Compilar o código fonte sem efetuar a fase de linking: + +`gcc -c {{arquivo_fonte.c}}` \ No newline at end of file