esl-epfl / x-heep

eXtendable Heterogeneous Energy-Efficient Platform based on RISC-V
Other
141 stars 75 forks source link

Include assembly files as source files for compilation #522

Closed JuanSapriza closed 4 months ago

JuanSapriza commented 4 months ago

As a request of #519 I have added the inclusion of assembly (.s) files into the linked files.

@davideschiavone @Ho3eintaji do you have a test example?

JuanSapriza commented 4 months ago

Added compatibility with both .s and .S files. For this I needed to exclude the .S files contained inside the device directory, or would have collisions with crt and so on.

I have tested this compiling for verilator (+ the function returns successfully).

make run-app-verilator PROJECT=example_asm