Skip to content

Commit

Permalink
Update 01_modules_make_batch_jobs.md
Browse files Browse the repository at this point in the history
  • Loading branch information
csccva authored Jun 14, 2024
1 parent f53bf23 commit 4e6794b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions computer-platforms/docs/01_modules_make_batch_jobs.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,27 @@ ssh-copy-id <my_user_id>@mahti.csc.fi
![](images/building.svg){.center}
</div>

# Compiling and linking

Single file source code:
```bash
cc main.c -o main
```

<div class=column>
In practice programs be separated into several files
<br>$\Rightarrow$ complicated dependency structures
- Building large programs takes time
- could we just rebuild the parts that changed?
- Having different options when building
- debug versions, enabling/disabling features, etc.
</div>

<div class=column>
_A make rule_
![](images/depend.png){.center width=40%}
</div>

# Compiling and linking: possible problems

- Programs should usually be separated into several files
Expand Down

0 comments on commit 4e6794b

Please sign in to comment.