mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-27 16:55:26 +02:00
17 lines
401 B
Markdown
17 lines
401 B
Markdown
![]() |
# mpicc
|
||
|
|
||
|
> Open MPI C wrapper compiler.
|
||
|
> More information: <https://www.mpich.org/static/docs/latest/www1/mpicc.html>.
|
||
|
|
||
|
- Compile a source code file into an object file:
|
||
|
|
||
|
`mpicc -c {{path/to/file.c}}`
|
||
|
|
||
|
- Link an object file and make an executable:
|
||
|
|
||
|
`mpicc -o {{executable}} {{path/to/object_file.o}}`
|
||
|
|
||
|
- Compile and link source code in a single command:
|
||
|
|
||
|
`mpicc -o {{executable}} {{path/to/file.c}}`
|