lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since ba8eecf was 3508000, checked in by Petr Koupy <petr.koupy@…>, 14 years ago |
|
Added C demos to demonstrate the toolchain.
|
-
Property mode
set to
100644
|
|
File size:
241 bytes
|
| Line | |
|---|
| 1 | extern int putchar(char);
|
|---|
| 2 |
|
|---|
| 3 | #define TERMINATOR '!'
|
|---|
| 4 |
|
|---|
| 5 | int main(void) {
|
|---|
| 6 | /* Prints "hello" to the standard output. */
|
|---|
| 7 | putchar('h');
|
|---|
| 8 | putchar('e');
|
|---|
| 9 | putchar('l');
|
|---|
| 10 | putchar('l');
|
|---|
| 11 | putchar('o');
|
|---|
| 12 | putchar(TERMINATOR);
|
|---|
| 13 | putchar('\n');
|
|---|
| 14 | return 0;
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.