search for: avr

Displaying 20 results from an estimated 527 matches for "avr".

Did you mean: arr
2020 Mar 25
2
Build Clang/LLVM for AVR
Thank you for both of your input. Yes, I try to cross-compile for AVR, the simple ATMEGA328P used in every Arduino Uno. My main motivation being that I hope to be able to use a couple of STL containers, <functional> and <type_traits> on the MCU. Not sure though if this can be reached by going via the clang route. Getting back to the compilation: when I r...
2020 Mar 25
3
Build Clang/LLVM for AVR
Hi everyone, I've been wondering how to correctly build clang/LLVM for the AVR target architecture. Unfortunately documentation is very scarce (or outdated or I didn't find it) and while I've been able to build clang/LLVM for AVR I'm still falling short of compiling an actual binary for the MCU. Here are the steps I've undertaken so far: git clone https://g...
2020 Mar 04
2
How to add new AVR targets?
...should be simple. > > Where is the information about ISR-vector table, SRAM addresses and so > on stored? > > > At the moment, this is not implemented in LLVM; these details are left > to the frontend. Clang/compiler-rt does not include the usual ISR table > or AVR-specific startup routines to initialize SRAM from program memory > - avr-clang-compiled executables must currently be linked with > avr-libc/libgcc. Users of the AVR-Rust frontend have implemented these > tables and routines in assembly in each source repository, or more > commonly just...
2020 Mar 04
2
How to add new AVR targets?
...The new are of xmega3 architecture, which is already included. So this should be simple. Where is the information about ISR-vector table, SRAM addresses and so on stored? -- Wilhelm Am 04.03.20 um 11:03 schrieb Dylan McKay: > Hey Wilhelm, > > This should be possible by editing the 'AVRDevices.td' [1]TableGen > definitions to add an entry for the newer chip types. You will need to > instruct LLVM which features are available on the chip (such as extended > LPM support), cross referencing with the instruction set manual for the > AVR MCU you're adding to figure...
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
2019 Mar 21
2
A question about "make check-all"
Hello, I have successfully build the newest llvm from git source, and I would like to do some experiments on target AVR. Does "make check-all" cover AVR? All I need some extra steps to test AVR? I have neither AVR simulator nor real AVR board connected. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/...
2010 Apr 07
1
Strange 'find' misbehaviour
...ny directories under /boot: # find /boot/ -type d /boot/ /boot/grub /boot/lost+found So far so good. Now execute a detailed listing on the results: # find /boot/ -type d -exec ls -l \{} \; total 6203 -rw-r--r-- 1 root root 68663 sep 3 2009 config-2.6.18-164.el5 drwxr-xr-x 2 root root 1024 avr 6 10:40 grub -rw------- 1 root root 3228842 avr 6 10:30 initrd-2.6.18-164.el5.img drwx------ 2 root root 12288 avr 6 10:19 lost+found -rw-r--r-- 1 root root 80032 mar 12 2009 message -rw-r--r-- 1 root root 107405 sep 3 2009 symvers-2.6.18-164.el5.gz -rw-r--r-- 1 root root 954947 sep 3...
2020 Mar 04
2
How to add new AVR targets?
Am 04.03.20 um 13:28 schrieb Dylan McKay: > > * *The C/C++ function needs to be declared with either the calling > convention avr-interrupt or avr-non-blocking-interrupt.* Skipping > this step will cause regular ret instructions to be emitted for > return-from-subroutine, instead of the required reti for interrupt > handlers. ISRs also have stricter requirements on which registers > must not be clo...
2016 Feb 06
1
How is llvm-avr backound integration going?
To those interested in AVR backend additions to LLVM, the LLVM review tools "Phabricator" ( don't ask me to say that 3 times fast ), allows easy searching. Go to http://reviews.llvm.org/ and type in AVR in the search entry. This will give you a list of the commits, and resolutions. From my understanding (...
2020 Mar 04
2
How to add new AVR targets?
I'm beginning to use the AVR backend. I ran into the problem, that newer (tiny1, mega0) µC as a tiny1614 are not supported. How do I add these to the AVR backend? Thanks!
2015 Dec 18
2
How is llvm-avr backound integration going?
How is the llvm-avr backend integration going ? Will it be functional ( experimental ) in the 3.8 release ? Will Clang recognize options for avr ? thanks. Allen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151218/be23dc4...
2019 Feb 19
2
AVR is little endian, but requires function arguments to be in a "big endian" order, might need an additional data layout variable unless someone can suggest a better fix?
I think this is broken in at least one place when legalising the DAG. This llvm ir: %3 = call { i16, i1 } @llvm.umul.with.overflow.i16(i16 %2, i16 11) Fails to lower correctly on AVR but the problem is, unfortunately, not just coming from the AVR Target code and I am not sure it can be cleanly fixed just there. (But I would be very happy to be proved wrong as I'm very new to this.) The above code is taken by the legalizer and turned into a call to __mulsi3, but turns the 1...
2020 Feb 18
4
Moving the AVR backend out of experimental
> > Should we just make it a normal target? > My only remaining reservation here - the generic DebugInfo tests, which presumably due to an unimplemented 16-bit branch somewhere deep in the llvm-objdump callstack. The AVR backend passes virtually all of the LLVM test suite but these when avr-unknown-unknown is set as the default target. It feels like the inclusion of ~80 XFAILs for these DebugInfo tests would be the only wart on the experimental->official code review. I've had a couple long attempts debugging...
2017 Dec 20
6
[GlobalISel] gen-global-isel failed to work
...ctor. This one is pretty obvious from the name, but in the general case you might have to look at what exists in DAGISel. Hope that helps, Diana > > 在 2017年12月19日 21:28, Daniel Sanders 写道: >> >> Sorry, I've given you the wrong header. The one I gave you does include >> AVRGenRegisterInfo.inc but doesn't define the enum because it uses the wrong >> macros for that. The correct one is '#include >> "MCTargetDesc/AVRMCTargetDesc.h"'. You'll also need to 'include >> "AVRRegisterBanks.td"' somewhere in your .td...
2019 Mar 21
3
A question about "make check-all"
Hello, I have successfully build the newest llvm from git source, and I would like to do some experiments on target AVR. Does "make check-all" cover AVR? All I need some extra steps to test AVR? I have neither AVR simulator nor real AVR board connected. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachment...
2017 Feb 03
2
Build status expectations for experimental targets
> On Feb 3, 2017, at 4:18 AM, Tobias Grosser via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > On Fri, Feb 3, 2017, at 11:37 AM, Dylan McKay via llvm-dev wrote: >> Hey all, >> >> Every few weeks, a change is committed to trunk that breaks the AVR >> buildbot. >> >> A problem presents when commit authors do not fix the build, and just >> leave >> it because it passes on the core buildbots. The build stays red for a few >> days until I go and check it. In the meantime, it likely causes spam for >> mo...
2020 Feb 14
5
Moving the AVR backend out of experimental
...dylanmckay address > > On Fri, Feb 14, 2020 at 10:58 AM Nico Weber <thakis at chromium.org <mailto:thakis at chromium.org>> wrote: > Hi, > > There was a thread a few days ago about the expectations for experimental targets. At the moment, the only experimental target is AVR. It's been in the tree for a long time now, and generally seems well-behaved. > > Should we just make it a normal target? > > Nico > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi...
2020 Mar 28
2
How to add new AVR targets?
...lt;v2> 7c: 08 95 ret So, in C++ mode it is not recognized as ISR due to name mangling. Furthermore there are no register push/pos and no reti. Whats wrong? Thanks. Am 11.03.20 um 08:13 schrieb Dylan McKay: > Here you go Wilhelm, > > https://github.com/dylanmckay/clang-avr-libc-interrupt-example > > > > On Thu, Mar 5, 2020 at 4:05 AM Wilhelm Meier <wilhelm.meier at hs-kl.de > <mailto:wilhelm.meier at hs-kl.de>> wrote: > > Am 04.03.20 um 13:28 schrieb Dylan McKay: > > > > >   * *The C/C++ function needs...
2017 Feb 03
2
Build status expectations for experimental targets
...d to add an InformativeMailNotifier to http://llvm.org/svn/llvm-project/zorg/trunk/buildbot/osuosl/master/config/status.py <http://llvm.org/svn/llvm-project/zorg/trunk/buildbot/osuosl/master/config/status.py>. > > Nice! Exactly what I was looking for. > > If we would believe the AVR backend is stable enough, such that users can rely on it and such that other developers are unlikely to trigger bugs in the AVR backend, the AVR backend should most likely be promoted to a stable backend. > > In general, I’ve found that almost all of the time that the AVR build breaks, it’s...
2020 Feb 14
4
Moving the AVR backend out of experimental
Hi, There was a thread a few days ago about the expectations for experimental targets. At the moment, the only experimental target is AVR. It's been in the tree for a long time now, and generally seems well-behaved. Should we just make it a normal target? Nico -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200214/dfb6eb16/attachment.html...