This commit is contained in:
		
					parent
					
						
							
								ab4e8dcd20
							
						
					
				
			
			
				commit
				
					
						3f44a553bc
					
				
			
		
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
										
									
									
									
								
							|  | @ -13,18 +13,18 @@ Emulator exit codes: | |||
| - `2` - illegal instruction argument (like funct3) | ||||
| 
 | ||||
| Compile: | ||||
| 0. Dependencies: `libelf` | ||||
| 1. ``` | ||||
| 1. Dependencies: `libelf` | ||||
| 2. ``` | ||||
|    make # should display no warnings | ||||
|    ``` | ||||
| 2. Executable is `build/criscv` | ||||
| 3. Executable is `build/criscv` | ||||
| 
 | ||||
| Note: Prebuilts for **x86_64 & aarch64 Linux** are available [here](https://git.m724.eu/Minecon724/criscv/actions), pick the latest one, unpack and run the one for your architecture. \ | ||||
| Those are **dynamic**, meaning you still need the dependencies! See compile step 0 above. | ||||
| 
 | ||||
| Compile programs: | ||||
| 0. Get the toolchain obviously | ||||
| 1. ``` | ||||
| 1. Get the toolchain obviously | ||||
| 2. ``` | ||||
|    riscv32-unknown-elf-gcc -ffreestanding -nostdlib -Ttext=0x0 -e main -O0 -o program.elf program.c | ||||
|    ``` | ||||
| 3. `program.bin` is the binary file with the program, pass it as an argument | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Minecon724
				Minecon724