-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Newlib usable with Synopsys MetaWare toolchain #52
Conversation
".align" is supported by both GCC & MetaWare compiler for ARC, yet implements the same semantics as ".balign" which only works with GCC. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coers
-> cores
@abrodkin please put the macro defs in this order:
|
@shahab-vahedi that doesn't work that way because surprisingly
So, will the following implementation be better than existing one?
|
That is surprising indeed. I'll let @claziss make the final call on this. Till then, how about?
|
…oolchian happy There's no semantic change, it's only to make the same code compilable with MetaWare toolchian, which actually assumes "@x" as a full name, not omitting "@". Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
b3f0c52
to
4b965f2
Compare
@shahab-vahedi pushed a re-spin with the following changes:
|
@abrodkin Please comment why |
It makes it usable with standard symbol names defined in default linker scripts of the MetaWare toolchain. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
4b965f2
to
6248e51
Compare
@claziss done now. @BrunoASMauricio could you please run some testing on both ARC & ARC64 for this branch and if all is good, we may merge it, though not in |
Looks good to me with one caveat. |
ARC proprietary MetaWare ccac compiler uses its own built-ins, and so we need to respect them. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
6248e51
to
cc43b66
Compare
Done now. |
Thank you @abrodkin for all the reworks. |
@abrodkin newlib and GCC baremetal tests don't show regression with these changes |
Synopsys MetaWare toolchain is a proprietary premium toolchain for ARC processors.
Now it's possible to build Newlib with MetaWare toolchain and use it as yet another standard C library for ARC cores.
To build it for ARC HS processor use the following commands, assuming MeratWare toolchain is in your
PATH
variable: