Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ch32v003fun
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Horn
ch32v003fun
Commits
465e77a2
Commit
465e77a2
authored
2 years ago
by
cnlohr
Browse files
Options
Downloads
Patches
Plain Diff
It works with GCC!
parent
a437cf39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
barebones/Makefile
+3
-2
3 additions, 2 deletions
barebones/Makefile
official/Makefile
+3
-2
3 additions, 2 deletions
official/Makefile
official/embedlibc.c
+2
-0
2 additions, 0 deletions
official/embedlibc.c
with
8 additions
and
4 deletions
barebones/Makefile
+
3
−
2
View file @
465e77a2
...
...
@@ -7,8 +7,9 @@ PREFIX:=riscv64-unknown-elf
GPIO_Toggle
:=
EXAM/GPIO/GPIO_Toggle/User
CFLAGS
:=
\
-Os
-flto
-ffunction-sections
\
-march
=
rv32emc
\
-g
-Os
-flto
-ffunction-sections
\
-static-libgcc
-lgcc
\
-march
=
rv32ec
\
-mabi
=
ilp32e
\
-I
/usr/include/newlib
\
-nostdlib
\
...
...
This diff is collapsed.
Click to expand it.
official/Makefile
+
3
−
2
View file @
465e77a2
...
...
@@ -7,8 +7,9 @@ PREFIX:=riscv64-unknown-elf
GPIO_Toggle
:=
EXAM/GPIO/GPIO_Toggle/User
CFLAGS
:=
\
-Os
-flto
-ffunction-sections
\
-march
=
rv32emc
\
-g
-Os
-flto
-ffunction-sections
\
-static-libgcc
-lgcc
\
-march
=
rv32ec
\
-mabi
=
ilp32e
\
-I
/usr/include/newlib
\
-nostdlib
\
...
...
This diff is collapsed.
Click to expand it.
official/embedlibc.c
+
2
−
0
View file @
465e77a2
...
...
@@ -4,6 +4,7 @@
#include
<stdio.h>
#include
<string.h>
#include
<stdarg.h>
#include
<limits.h>
int
errno
;
int
_write
(
int
fd
,
const
char
*
buf
,
int
size
);
...
...
@@ -25,6 +26,7 @@ int printf(const char* format, ...)
return
ret_status
;
}
/* Some stuff from MUSL
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment