URL
https://opencores.org/ocsvn/ion/ion/trunk
Subversion Repositories ion
Compare Revisions
- This comparison shows the changes necessary to convert path
/ion/trunk/src/hello
- from Rev 66 to Rev 90
- ↔ Reverse comparison
Rev 66 → Rev 90
/hello.c
1,5 → 1,8
/*hello.c*/ |
/** |
* hello.c -- 'Hello World' basic test. |
*/ |
|
|
int main() |
{ |
puts("compile time: " __DATE__ " -- " __TIME__ "\n"); |
/makefile
18,11 → 18,11
clean: |
-$(RM) *.o *.obj *.map *.lst *.hex *.exe *.axf *.code *.data |
|
hello: |
$(AS_MIPS) -o boot.o $(SRC_DIR)/common/boot.s |
$(GCC_MIPS) -o no_os.o $(SRC_DIR)/common/no_os.c |
hello: hello.c |
$(AS_MIPS) -o startup.o $(SRC_DIR)/common/startup.s |
$(GCC_MIPS) $(CFLAGS) -o baremetal.o $(SRC_DIR)/common/baremetal.c |
$(GCC_MIPS) -o hello.o hello.c |
$(LD_MIPS) $(LFLAGS) -Map hello.map -s -N -o hello.axf boot.o hello.o no_os.o |
$(LD_MIPS) $(LFLAGS) -Map hello.map -s -N -o hello.axf startup.o hello.o baremetal.o |
-@$(DUMP_MIPS) -m mips --disassemble hello.axf > hello.lst |
# Extract object code to be placed in code space |
$(COPY_MIPS) -I elf32-big -O binary hello.axf hello.code |