mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

* 7z, 7za, 7zr: update Indonesian translation * common: imperative mood on Indonesian translation * linux, osx, windows: imperative mood on Indonesian translation * common, linux: add Indonesian translation * powershell, pwsh: add Indonesian translation * common: add Indonesian translation * gcc: use standard file path template * Update pages.id/common/gcc.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages.id/common/gcc.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages.id/common/7za.md Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Apply suggestions from code review Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * Update pages.id/common/gcc.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages.id/common/7za.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update 7za.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update gcc.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * git-commit: update Indonesian translation --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
28 lines
908 B
Markdown
28 lines
908 B
Markdown
# gcc
|
|
|
|
> Praproses dan susun kode sumber C dan C++, lalu rakit dan gabungkan bersama-sama.
|
|
> Informasi lebih lanjut: <https://gcc.gnu.org>.
|
|
|
|
- Ubah beberapa sumber kode menjadi program:
|
|
|
|
`gcc {{jalan/menuju/sumber1.c jalan/menuju/sumber2.c ...}} -o {{jalan/menuju/program}}`
|
|
|
|
- Izinkan peringatan dan simbol debug dalam [o]utput:
|
|
|
|
`gcc {{jalan/menuju/sumber.c}} -Wall -g -Og -o {{jalan/menuju/program}}`
|
|
|
|
- Sertakan pustaka (library) dari direktori yang berbeda:
|
|
|
|
`gcc {{sumber.c}} -o {{jalan/menuju/program}} -I{{jalan/menuju/header}} -L{{jalan/menuju/pustaka}} -l{{nama_pustaka}}`
|
|
|
|
- Susun kode sumber ke dalam bahasa tingkat rendah (assembly):
|
|
|
|
`gcc -S {{jalan/menuju/sumber.c}}`
|
|
|
|
- Susun kode sumber tanpa digabungkan:
|
|
|
|
`gcc -c {{jalan/menuju/sumber.c}}`
|
|
|
|
- [O]ptimalkan progam yang disusun agar dapat dijalankan lebih cepat:
|
|
|
|
`gcc {{path/to/source.c}} -O{{1|2|3|fast}} -o {{path/to/output_executable}}`
|