HoneyGol-Microsystems / vesp-alpha

RISC-V based student processor for embedded applications.
GNU General Public License v3.0
3 stars 0 forks source link

Compile C firmware and standalone programs efficiently #82

Closed medexs closed 12 months ago

medexs commented 1 year ago

We need two things:

  1. Compile firmware written in C. Now it's done using Makefile and specific gcc options - it was tested and servers the purpose sufficiently, so there is no need to change this.
  2. Compile standalone asm programs. Till now, it was done using asmtohex.py script. This is not a good solution and it should not be done this way - the script will be deleted.
medexs commented 1 year ago

Using one Makefile:

  1. usage for C firmware compilation: make firmware SRC=<src_file_name>
  2. usage for standalone program: make standalone SRC=<src_file_name>