This ‘print-this’ resource is a simple binary which takes in two parameters: a string to print and an integer specifying the number of times it is to be printed.
This resource is deliberately kept simple and is used primarily for testing purposes.
Run make
.
Run make clean
on the Makefile directory.
It takes two parameters, a string to print and an integer stating how many times it should be printed.
./print_this "a string to print" 10
Will output:
1 a string to print 2 a string to print 3 a string to print 4 a string to print 5 a string to print 6 a string to print 7 a string to print 8 a string to print 9 a string to print 10 a string to print
Compiled to the RISC-V ISA: http://dist.gem5.org/dist/develop/test-progs/print-this/riscv-print-this
Compiled to the X86 ISA: http://dist.gem5.org/dist/develop/test-progs/print-this/x86-print-this
This code is covered by By the 03-Clause BSD License (BSD-3-Clause).