t-crest / patmos-clang Goto Github PK
View Code? Open in Web Editor NEWPort of the clang front-end to the time-predictable processor Patmos
License: Other
Port of the clang front-end to the time-predictable processor Patmos
License: Other
When compiling using clang
directly to a singlepath executable, the use of the optimization flags O2
and O3
fails because the root functions are not found.
I.e. for a given main.c
program, trying to compile using the command patmos-clang main.c -mpatmos-singlepath=some_root_sp_function -O2
will result in the error:
Following single-path roots were not found:
'some_root_sp_function'
LLVM ERROR: Single-path code generation failed due to missing single-path entry functions!
patmos-clang-3.4: error: link via llvm-link, opt and llc command failed with exit code 1 (use -v to see invocation)
Manually managing the compile steps does not throw this error. I.e. we can first compile to bitcode using patmos-clang -S main.c -O2 -o main.s
, and then use patmos-llc main.s -mpatmos-singlepath=some_root_sp_function -O2
to compile the rest of the way.
The TACLe-style loopbound pragma (#pragma loopbound min NUM max NUM) should allow macros for NUM constants. Unfortunately, this macro expansion does not work when only preprocessing with -E. Hence, compilation also fails when -save-temps is specified as command line option.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.