[LLVMdev] LLVM-gcc for a new architecture
tmlepist at cs.tut.fi
Tue Oct 16 19:03:06 CDT 2007
I have written new dummy target to llvm-gcc for our processor
which contains basically only the information which is necessary to
llvm byte code. I could check tomorrow in work, which parts of llvm-
gcc had to
be altered for our "tce-llvm-gcc" cross-compiler.
I also hardcoded compiler to use llvm-ld and llvm-as as it's
being able to link and compile e.g. newlib to bytecode library.
Is this basically the same thing that you are looking for?
On Oct 15, 2007, at 1:04, Anton Korobeynikov wrote:
>> Yes, I know that. configure --target=a-b-c will fail because there
>> is no such stuff known in gcc. So, what is the answer/consequence? An
>> existing gcc back-end for architecture "a" is a precondition for a
>> LLVM back-end for architecture "a"?
> No. This is requirement of using gcc as a frontend. This looks pretty
> weird, but it is: frontend should know some details about your target
> architecture (for example, pointer type, and much more). However, you
> might try to create "blank" gcc arch and try to fill all necessary
> Dunno, how hard it is.
>> Is there another fully working C front-end for LLVM?
> Not yet. However, I think, you can try clang and try to find what's
> working for you.
> With best regards, Anton Korobeynikov.
> Faculty of Mathematics & Mechanics, Saint Petersburg State University.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev