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

clang: add Spanish translation (#14800)

Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
Igor Támara 2024-11-16 11:01:03 -05:00 committed by GitHub
parent c586114668
commit 34a5b2d9e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

37
pages.es/common/clang.md Normal file
View file

@ -0,0 +1,37 @@
# clang
> Compila archivos fuente C, C+ y Objective-C. Se puede utilizar como un reemplazo para GCC.
> Parte de LLVM.
> Más información: <https://clang.llvm.org/docs/ClangCommandLineReference.html>.
- Compila archivos de múltiples fuentes en un ejecutable:
`clang {{ruta/a/fuente1.c ruta/a/fuente2.c ...}} {{-o|--output}} {{ruta/al/ejecutable_resultante}}`
- Activa la salida de todos los errores y advertencias:
`clang {{ruta/a/fuente.c}} -Wall {{-o|--output}} {{ejecutable_resultante}}`
- Muestra advertencias comunes, depura símbolos en la salida, y optimiza sin afectar la depuración:
`clang {{ruta/a/fuente.c}} -Wall {{-g|--debug}} -Og {{-o|--output}} {{ruta/al/ejecutable_resultante}}`
- Incluye bibliotecas de una ruta diferente:
`clang {{ruta/a/fuente.c}} {{-o|--output}} {{ruta/al/ejecutable_resultante}} -I{{ruta/al/encabezado}} -L{{ruta/a/la/biblioteca}} -l{{nombre_biblioteca}}`
- Compila código fuente hacia representación intermedia (IR) LLVM:
`clang {{-S|--assemble}} -emit-llvm {{ruta/a/fuente.c}} {{-o|--output}} {{ruta/a/la/salida.ll}}`
- Compila código fuente en un archivo objeto sin vincular (linking):
`clang {{-c|--compile}} {{ruta/a/fuente.c}}`
- Optimiza el programa compilado para velocidad de ejecución:
`clang {{ruta/a/fuente.c}} -O{{1|2|3|fast}} {{-o|--output}} {{ruta/al/ejecutable_resultante}}`
- Muestra la versión:
`clang --version`