Skip to content

Commit

Permalink
Add links to godbolt compiler results for examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
J08nY committed Mar 6, 2024
1 parent 975b025 commit ad4d6d5
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 10 deletions.
4 changes: 3 additions & 1 deletion _examples/01.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ int main(int argc, char *argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/acPazsbP3).
4 changes: 3 additions & 1 deletion _examples/02.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ int main(int argc, char *argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/EbGaPKe3f).
4 changes: 3 additions & 1 deletion _examples/03.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ int main(int argc, char *argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/nj1b1d633).
4 changes: 3 additions & 1 deletion _examples/04.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ int main(int argc, char *argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/hY99P8Wf4).
4 changes: 3 additions & 1 deletion _examples/05.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ int main(int argc, char *argv[]){

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/e9j7h1EGe).
4 changes: 3 additions & 1 deletion _examples/06.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ int main(void) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/sKc6TTnhG).
4 changes: 3 additions & 1 deletion _examples/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ int main(int argc, char *argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/PEv77sers).
4 changes: 3 additions & 1 deletion _examples/08.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ int main(int argc, char * argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/WYT8Pc6ET).
4 changes: 3 additions & 1 deletion _examples/09.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ int main(int argc, char * argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/G8vM9a1e3).
4 changes: 3 additions & 1 deletion _examples/10.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ int main(int argc, char * argv[]) {

return 0;
}
```
```
See the compilation results with different optimization levels on [GodBolt](https://godbolt.org/z/1fEKKTYjj).

0 comments on commit ad4d6d5

Please sign in to comment.