docs - change recommended compiler to gcc

This commit is contained in:
2026-08-31 18:58:20 +02:00
parent 363432666c
commit b803e58e67
+3 -3
View File
@@ -114,7 +114,7 @@
</div>
<hr>
<p>This tutorial explains how to create and run a simple program in the C programming language (using the tcc C compiler) on MontaukOS.</p>
<p>This tutorial explains how to create and run a simple program in the C programming language (using the gcc compiler) on MontaukOS.</p>
<hr><ol>
<li>Open the Text Editor by navigating to the 'Applications' section in the app menu.</li>
<blockquote><strong>Did you know?</strong> The MontaukOS Text Editor provides syntax highlighting for C and Lua files.</blockquote>
@@ -147,8 +147,8 @@ int main(void) {
</blockquote>
</li>
<li>If you saved your program's source file somewhere other than your Home directory, switch to the directory in which you saved your program using the <i>cd</i> command. For example, <code>cd Documents</code>.</li>
<br><li>Type '<code>tcc </code>' followed by your program's name, and then press enter. For example, '<code>tcc hello.c</code>'.</li>
<br><li>Run your program by typing its name without the '.c' extension, before pressing enter - for example, "hello".</li>
<br><li>Type '<code>gcc </code>' followed by your program's name, and then press enter. For example, '<code>gcc hello.c</code>'.</li>
<br><li>Run your program by typing "a.out" and pressing enter.</li>
<br><li>You should see "Hello, World!" displayed in the Terminal window. Congratulations!</li>
<br>
<img src="images/terminal-c.png" alt="">