chipsalliance / espresso

34 stars 14 forks source link

Refactor to ANSI C #14

Closed yqszxx closed 3 years ago

sequencer commented 3 years ago

Wait for Chisel CI by @sinofp

sequencer commented 3 years ago

@yqszxx plz share your flow in the PR description page, that's very interesting.

yqszxx commented 3 years ago

This tool cproto is able to convert most of functions' prototype, but it isn't happy with modern standard library header files which causes functions with their arguments typed with types from std lib (like FILE) being ignored. Some manual dummy definitions placed in the ignored file fix this problem:

typedef int FILE;

Then just use regex to stripe out IN, register and sort of stuffs.

sequencer commented 3 years ago

@yqszxx plz rebase to master

yqszxx commented 3 years ago

Moved to #19.