Displaying 10 results from an estimated 10 matches for "mmcu".
Did you mean:
mmc
2020 Mar 25
2
Build Clang/LLVM for AVR
...th -nostdlibinc (which makes it necessary to point clang to the header file location via -isystem /opt/avr/avr-libc/avr/include) and --gcc-toolchain I can compile the minimum example code.
clang++ --target=avr -nostdlibinc -isystem /opt/avr/avr-libc/avr/include --gcc-toolchain=/opt/avr/avr-gcc -mmcu=atmega328p -c main.cpp -o main.o
However, when I'm running a compilation on a more complicated embedded programm I get a lot of troubling warnings, e.g.
warning: unknown attribute '__progmem__' ignored [-Wunknown-attributes]
(which are troubling me, because if all those string cons...
2020 Mar 25
3
Build Clang/LLVM for AVR
...t; -DCMAKE_BUILD_TYPE=Release ../llvm
make -j8
sudo make install
Next I created a pretty empty main.cpp and tried to compile that:
#include <stdint.h>
int main()
{
for(;;) { }
return 0;
}
Here's the result of attempting the compilation ...
$ clang++ --target=avr -mmcu=atmega328p -c main.cpp -o main.o -v
clang version 11.0.0 (https://github.com/llvm/llvm-project 177dd63c8d742250dac6ea365e7c30f0fbab3257)
Target: avr
Thread model: posix
InstalledDir: /usr/local/bin
Found candidate GCC installation: /usr/lib/gcc/avr/5.4.0
Selected GCC installation: /usr/...
2017 Sep 01
2
[RFC] Adding ARC backend
Hi Pete,
> https://reviews.llvm.org/D36331
Congratulations!
> Following shortly:
> * Clang driver and target triple support.
great, then it is able to generate ELF by $ /opt/llvm-svn/bin/clang -c
--target=arc hello.c -o hello.o -mmcu=XXX
and do you plan to implement ARC target for lld[1]? it is a good
testcase: flash them directly to the chip[2], or simulator[3].
1. ARC target for lld
https://github.com/llvm-mirror/lld/blob/master/ELF/Arch/ARC.cpp
2. ARC platforms https://embarc.org/platforms.html
3.
https://github.com/...
2017 Sep 01
2
[RFC] Adding ARC backend
...opsys.com>
Cc: llvm-dev at lists.llvm.org <llvm-dev at lists.llvm.org>
Subject: Re: RE: [RFC] Adding ARC backend
Hello Leslie,
>> * Clang driver and target triple support.
>great, then it is able to generate ELF by $ /opt/llvm-svn/bin/clang -c --target=arc hello.c -o hello.o -mmcu=XXX
Basically yes, but we have not implemented the integrated assembler yet, so currently rely on an external ARC gnu toolchain.
Plus, there are a wide variety of subtargets that are basically unsupported until we start adding configuration support.
https://github.com/foss-for-synopsys-dwc-arc-pr...
2020 Mar 31
2
How to add new AVR targets?
...Hi Dylan,
>
> I used the following commandline:
>
> clang++ -Os -DF_OSC=20000000 -DF_CPU=20000000 --target=avr -I.
> -I../include0 -I../../include0 -I../../../include0 -I../../include0/std
> -I../include0/std -I../../../include0/std -I../../3rdparty/boost
> -I/usr/avr/include -mmcu=atmega328p
> /home/lmeier/Projekte/wmucpp/clang/bm00/bm00.cc -S -emit-llvm --output
> bm00.ir
>
> Please find the IR attached in the file bm00.ir
>
> Thanks,
> Wilhelm
>
>
> Am 30.03.20 um 13:44 schrieb Dylan McKay:
> > Hey Wilhelm,
> >
> > Could you...
2020 Mar 31
3
How to add new AVR targets?
...wing commandline:
>>
>> clang++ -Os -DF_OSC=20000000 -DF_CPU=20000000 --target=avr -I.
>> -I../include0 -I../../include0 -I../../../include0 -I../../include0/std
>> -I../include0/std -I../../../include0/std -I../../3rdparty/boost
>> -I/usr/avr/include -mmcu=atmega328p
>> /home/lmeier/Projekte/wmucpp/clang/bm00/bm00.cc -S -emit-llvm --output
>> bm00.ir <http://bm00.ir>
>>
>> Please find the IR attached in the file bm00.ir <http://bm00.ir>
>>
>> Thanks,
>> Wilhelm
>>
>&g...
2020 Mar 10
2
DWARF .debug_aranges data objects and address spaces
...es due to multiple code/data address spaces as in my case
of a Harvard machine.
As far as I can tell, the only upstream backend that is of a similar
configuration is AVR. I can reproduce the same `.debug_aranges` table as my
target with the following simple example:
$ clang -target avr -mmcu=attiny104 -S -o - -g -gdwarf-aranges -xc - <<'EOF'
char char_array[16383] = {0};
int main() {
return char_array[0];
}
EOF
# ...
.section .debug_aranges,"", at progbits
.long 20 ; Length of ARange Set
.short...
2020 Mar 30
2
How to add new AVR targets?
Hey Wilhelm,
Could you post the LLVM IR generated from your C++ file?
This can be achieved with 'clang -S -emit-llvm'
Cheers
On Sat, Mar 28, 2020 at 6:36 PM Wilhelm Meier <wilhelm.meier at hs-kl.de>
wrote:
> Answering partly to myself there was a extern "C" missing.
>
> But the register pushes ans reti are still missing.
>
> Whats wrong?
>
> Am
2020 Apr 08
2
How to add new AVR targets?
...gt;>> clang++ -Os -DF_OSC=20000000 -DF_CPU=20000000 --target=avr -I.
>>>> -I../include0 -I../../include0 -I../../../include0 -I../../include0/std
>>>> -I../include0/std -I../../../include0/std -I../../3rdparty/boost
>>>> -I/usr/avr/include -mmcu=atmega328p
>>>> /home/lmeier/Projekte/wmucpp/clang/bm00/bm00.cc -S -emit-llvm --output
>>>> bm00.ir <http://bm00.ir>
>>>>
>>>> Please find the IR attached in the file bm00.ir <http://bm00.ir>
>>>>
>>>>...
2017 Sep 14
4
Do I need to modify the AddrLoc of LLD for ARC target?
Hello Leslie,
I think we are going to need to know a bit more about the ELF ABI for
what looks like the ArcCompact before we can help you.
LLD's calculation of P (the place to be relocated) is as it is in the
generic ELF specification. The Rel.Offset corresponds to the ELF
r_offset field. This is covered by: "For a relocatable file, the value
is the byte offset from the beginning of the