From d52256b60fe0c5b4990d742ec2655fddd9d77e19 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Mon, 12 Jun 2017 09:18:05 -0700 Subject: Call puts instead of printf when printing constants printf doesn't fit in the scratchpad, but since there's really no reason to call it on constant strings it can be replaced with puts. With this change, the "hello" example fits in the scratchpad. --- software/hello/hello.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'software/hello') diff --git a/software/hello/hello.c b/software/hello/hello.c index 85c5d87..befc6ee 100644 --- a/software/hello/hello.c +++ b/software/hello/hello.c @@ -2,7 +2,7 @@ int main() { - printf("hello world!\n"); + puts("hello world!\n"); return 0; } -- cgit v1.2.1-18-gbd029