Repository navigation
Commit c6f332d
committed
docs: a freestanding target does have
docs/05 §2.7.2 told the reader there is no `main` on a bare-metal target and
to point the target at a file carrying `_start`. That is only true for a board
with no C library at all — with picolibc's semihosting crt0, which is what a
board-support package ships, the entry point is an ordinary `int main()` whose
return value reaches the host.
Also leads the section with the short path (`mcpp new blinky --template
riscv-virt-rt`), since the hand-written form below it is what to reach for when
writing a package for a board that has none — not what to start with.main when a board package supplies crt01 parent d93d228 commit c6f332d
2 files changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
912 | 928 | | |
913 | 929 | | |
914 | 930 | | |
915 | 931 | | |
916 | 932 | | |
917 | 933 | | |
918 | 934 | | |
919 | | - | |
| 935 | + | |
920 | 936 | | |
921 | 937 | | |
922 | 938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
810 | 824 | | |
811 | 825 | | |
812 | 826 | | |
813 | 827 | | |
814 | 828 | | |
815 | 829 | | |
816 | 830 | | |
817 | | - | |
| 831 | + | |
818 | 832 | | |
819 | 833 | | |
820 | 834 | | |
| |||
0 commit comments