Re: Partial libstdc++ Support

2021-02-02 Thread Klaus
e most critical resource on avr. I moved to arm for a lot of projects, even if avr hardware would be nicer, but gcc was not able to generate the needed code for avr for given reasons. Missing parts of STL and the ram problem let me move to other controllers! Klaus

Re: static class member as interrupt handler works, but not if class is templated

2021-04-10 Thread Klaus
tantiation of the function: 007e ::Handler()>: 7e: 18 95 reti But it is simply not named as "__vector_10" which is the problem. The member function is instantiated but still with wrong name even with my or your code. Klaus

Re: [avr-gcc-list] Special Statistics-Measuring code?

2005-10-10 Thread Klaus Rudolph
, Klaus , > "Bob Paddock" <[EMAIL PROTECTED]> wrote: > > > Is it possible to do this with AVR-GCC?: > > I don't think anyone ever tried. The point is how you fetch the > profiling data from the AVR into the file. If at all, I'd say > emulat

Re: [avr-gcc-list] Regression tests

2005-11-15 Thread Klaus Rudolph
conditions so that worst case tests could be done. I think this could never work in real hardware, also jtag give not full access in real time environment. Bye Klaus > I've seen on the avr-libc-dev list that regression tests were used and on > avr-freaks[1] that one guy was building a

Re: [avr-gcc-list] Regression tests

2005-11-15 Thread Klaus Rudolph
art condition after the run, all seems to be ok. If this is true the simulated environment has no failures and should also work in real conditions and hardware (and it works :-). Bye Klaus > > This sounds very exciting! > Is there any place I can learn about it? Any examples ly

RE: [avr-gcc-list] Regression tests

2005-11-16 Thread Klaus Rudolph
l timing" behaviour. Please spend your devices to the simulavrxx project! Have fun! Regards Klaus -- Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat, DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl ___ AVR-GC

Re: [avr-gcc-list] Inserting code before context save in an ISR (for nested interrupts)

2007-08-06 Thread Klaus Rudolph
The compiler only save registers which are needed by the isr. Why you should do this by your own? Hi all, I'm working on a hard realtime application where I need to keep the time where interrupts are disabled as small as possible. I've noticed that a typical ISR can take 40+ cycles to push r

Re: [avr-gcc-list] Opinions of AVR simulators

2007-08-08 Thread Klaus Rudolph
and other scripting languages. Have fun! Bye Klaus What opionions do people have on the open AVR simulators? The two that I've found are Avrora and simulavr. I'm trying to find out if its worth the time to figure out how to get them working. I'm mostly interested i

Re: [avr-gcc-list] Opinions of AVR simulators

2007-08-09 Thread Klaus Rudolph
e or by hand if you do it one time :-) If someone spend my a fat pc where M$ could work and support to keep that alive for a few days I could do the job. :-) Sorry, I dropped all M$ chaos 9 years ago. Bye Klaus Klaus, is simulavrxx properly running under Cygwin? I thought it was a '

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Klaus Rudolph
expected :-) and nothing else is requested. If you need a handcafted delay loop use inline assembler instead. The behaviour of the compiler can change from version to version. And I hope it will change a lot to get better code! Bye Klaus Royce Pereira wrote: So I have to write more 'C&

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Klaus Rudolph
Please use optimizer! Something like -O2 -O3 -Os ... as you need! Simplify your delay loop: void delay(volatile word cnt) { ... Have fun! Royce Pereira schrieb: Hi, On Fri, 28 Sep 2007 14:47:26 +0530, David Brown <[EMAIL PROTECTED]> wrote: This is probably in the FAQ somewhere - if not, it

Re: [avr-gcc-list] Problem with delay loop

2007-09-28 Thread Klaus Rudolph
The code has been optimized. Well done! If you need the variable access use 'volatile' Hi all, In the latest WinAVR (avr-gcc (GCC) 4.1.2 (WinAVR 20070525) I found this. Check this out: //== void delay(unsigned del_cnt) { while(del_cnt--); return; } //

Re: Simulator for GCC Testing [was: RE: [Fwd: Re: [avr-gcc-list]GCC-AVR Register optimisations]]

2008-01-15 Thread Klaus Rudolph
esults of simulation with some environment for automation. If there is a need for a more elaborate solution: let me know! Maybe I can do that for you! Bye Klaus ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mail

[avr-gcc-list] gcc 4.3.0

2008-04-11 Thread Klaus Rudolph
s well for i386 plattform but not for avr. With i368 I got 3 breaks while inlining the ctors but only one from avr. Any ideas? Thanks Klaus My test code : volatile int i; class A { public: A () { i=9;} }; int main() { A a; A b; A c; } Result:

Re: [avr-gcc-list] gcc 4.3.0

2008-04-13 Thread Klaus Rudolph
your work Regards Klaus ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] RTTI on avr possible?

2008-06-11 Thread Klaus Rudolph
Hi all, is there a possibility to use RTTI on avr with avr-g++? Thanks Klaus ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] RTTI on avr possible?

2008-06-11 Thread Klaus Rudolph
trying it to see if it works... Simple question: How could I switch on RTTI on the compiler? As I know, which is maybe wrong, RTTI is not available by default compiler compilation. Any suggestions? Thanks Klaus ___ AVR-GCC-list mailing list AVR-GCC

[avr-gcc-list] build gcc-4.6-20101204 fails for avr

2010-12-08 Thread Klaus Rudolph
--disable-nls --disable-libssp which works under 4.5 versions. Are there any patches available? Thanks Klaus -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail ___ AVR

Re: RE: [avr-gcc-list] build gcc-4.6-20101204 fails for avr

2010-12-08 Thread Klaus Rudolph
s very simple if someone is able to look inside the configure.xxx scripts. But I am really no export on this ;) Regards Klaus -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.

Re: [avr-gcc-list] build gcc-4.6-20101204 fails for avr

2010-12-08 Thread Klaus Rudolph
e red the last hours ;) Regards Klaus -- GRATIS! Movie-FLAT mit über 300 Videos. Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Re: [avr-gcc-list] build gcc-4.6-20101204 fails for avr

2010-12-08 Thread Klaus Rudolph
st hours ;) Regards Klaus -- GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] problems with debugging, wrong output in assembler window from ddd

2013-06-25 Thread Klaus Rudolph
0x32 0x0080001c: mulsr21, r31 0x0080001e: std Y+50, r10 ; 0x32 0x00800020: nop Why I got an address in ram space? ddd 3.3.12, gdb and gcc in a lot of variants without different behaviour. Any hints? Regards Klaus ___ AV

Re: [avr-gcc-list] problems with debugging, wrong output in assembler window from ddd

2013-06-25 Thread Klaus Rudolph
> Gesendet: Dienstag, 25. Juni 2013 um 15:28 Uhr > Von: "Klaus Rudolph" > An: avr-gcc-list@nongnu.org > Betreff: [avr-gcc-list] problems with debugging, wrong output in assembler > window from ddd > > Hi all, > > I use ddd/avr-gdb to debug in connection

Re: [avr-gcc-list] problems with debugging, wrong output in assembler window from ddd

2013-06-27 Thread Klaus Rudolph
?id=13519 + low &= 0x80 - 1; + high &= 0x80 - 1; print_disassembly (gdbarch, name, low, high, flags); } The patch is still working with gdb7.6. For the moment the workaround fulfill my needs. Thanks Klaus ___ AVR-GCC-list ma

[avr-gcc-list] debug infos in assembler files

2013-11-18 Thread Klaus Rudolph
tep assembly/link? Maybe there is something more different. gcc version: 4.8.2 gdb version: 7.6.1 Thanks Klaus ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

[avr-gcc-list] Internal handling of interrupt vectors and jump table

2015-08-11 Thread Klaus Rudolph
__vector_7 goes to the correct place in the table? I can't see the relocations nor the symbols for that! Is this hardcoded somewhere in binutils? It would be nice that someone can give me some hints to where I can find the details of getting the vect

Re: [avr-gcc-list] Internal handling of interrupt vectors and jump table

2015-08-12 Thread Klaus Rudolph
nd assignment is only done by the name of the function. Quite simple after finding the stuff :-) Thanks! Klaus ___ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

cross compile gcc 10.1.0 on linux for avr fails

2020-07-16 Thread Klaus Rudolph
I try to compile gcc 10.1.0 for target avr. If fails with: make[2]: Entering directory '/home/krud/git_my_checkout/first/own_components/gcc_install/gcc/gcc-10.1.0/build/gcc' g++ -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -W

Re: Partial libstdc++ Support

2021-02-02 Thread Klaus Rudolph
e most critical resource on avr. I moved to arm for a lot of projects, even if avr hardware would be nicer, but gcc was not able to generate the needed code for avr for given reasons. Missing parts of STL and the ram problem let me move to other controllers! Klaus

static class member as interrupt handler works, but not if class is templated

2021-04-10 Thread Klaus Rudolph
Hi all, if I write a class with static member function I can use it as an interrupt handler as follows: class Dummy { static void Handler() __asm__("__vector_10") __attribute__((__signal__, __used__, __externally_visible__)); }; void Dummy::Handler() { } I can see the vector is entered in

Re: static class member as interrupt handler works, but not if class is templated

2021-04-12 Thread Klaus Rudolph
Thank you all so much for wasting my thread! Please do NOT answer, you all produced enough spam! Would be nice if someone can help on *MY* topic! Thanks!

Re: static class member as interrupt handler works, but not if class is templated

2021-04-12 Thread Klaus Rudolph
-) But maybe a funny one and helpful for others. In general: Why assigning attributes to member functions in templated class context fails? For me it looks like a bug. Klaus

Re: static class member as interrupt handler works, but not if class is templated

2021-04-12 Thread Klaus Rudolph
e is no runtime overhead (with LTO, this probably already happens when there's just a single call to the member). It already optimizes well in O2 if templated member function and free handler definition is in same translation unit. Klaus

Re: static class member as interrupt handler works, but not if class is templated

2021-04-12 Thread Klaus Rudolph
. This is particularly true when the details of the attribute you want - the "vector" assembly name - are dependent on a non-type parameter for the template. The opposite is meant! It is intended by using the asm statement that we have a single name, fully independent of parameters for the template. Klaus

Re: static class member as interrupt handler works, but not if class is templated

2021-04-12 Thread Klaus Rudolph
Am 12.04.21 um 16:25 schrieb Anton Staaf: Klaus, I'm not sure if my previous answer didn't make it through or was just missed, but I believe your problem is related to this GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70435 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id

Version/Signature in Flash

2022-01-18 Thread Klaus Rudolph
edefined 3 byte signature. I also see in the linker scripts that there is something called "user_signatures" but that seems to be unsupported for the rest of the linker script. But maybe I looked in the wrong file... Any suggestions? Thanks Klaus

Re: Version/Signature in Flash

2022-01-19 Thread Klaus Rudolph
t? Thanks! Klaus Am 19.01.22 um 13:48 schrieb Michael Stocker: Hallo Klaus, you can always define your own sections at a fixed location in flash and write anything you like in there. But every time you start a new section the previous one is closed implicitly. So it cannot be in the middle

Re: Version/Signature in Flash

2022-01-19 Thread Klaus Rudolph
also take a look... Thanks Klaus

Re: [avr-gcc-list] AVR-GCC question

2005-05-23 Thread Klaus Rudolph
> > > > Sure, it's called C++. :-) Absolutly right! It looks totally strange if you use inline assembler in templates but this give nearly optimal output. But never try to read it after a week again or maybe try to discuss things on the list here. If you ever read Andrei Alexandrescu´s

Re: [avr-gcc-list] stack layout

2005-06-25 Thread Klaus Rudolph
laese" version. Bye Klaus Hi, i'd like to change the memory layout of a program, especially the stack. So i linked my program with --defsym,__stack=0x900 When i look into the listing of my program that i got with: avr-objdump -h -S file.elf Then in __init the stackpointer still gets l

Re: [avr-gcc-list] stack layout

2005-06-25 Thread Klaus Rudolph
we have no hardware so simulation is the only solution for the problem :-) Regards, Klaus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Rudolph Sent: Friday, June 24, 2005 11:07 PM To: Torsten Mohr Cc: avr-gcc-list@nongnu.org Subject: Re

[avr-gcc-list] problems with olimex jtag emulator

2005-06-26 Thread Klaus Rudolph
atmel box and this works fine. Is it possible that the olimex box lost the software? And if so, has anyone an idea how to fix it. Anyone else have seen such a problem before. Thanks Klaus -- Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie! Ab 4,99 Euro/Monat: http://www.gmx.net/de/go

[avr-gcc-list] high voltage programming for stk500

2005-06-27 Thread Klaus Rudolph
Hi all, is there any linux tool which is able to program in high voltage/parallel mode with stk500 board? uisp did not support this, right? Thanks, Klaus -- Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis ++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/pro

Re: AW: [avr-gcc-list] problems with olimex jtag emulator

2005-06-27 Thread Klaus Rudolph
> Hi Klaus, > > Maybe try to use avrstudio with this olimex box once: It tends to > re-program the hardware if it thinks the software is too old. > I also have observed other strange things with one olimex clone: > Everything worked fine when running it on a Woe2000-Box with c

Re: AW: AW: [avr-gcc-list] problems with olimex jtag emulator

2005-06-27 Thread Klaus Rudolph
Haase Bjoern (PT-BEU/EMT) * schrieb: Klaus Rudolph wrote: The box is not repsonding at all, so also a firmware update seems not working but yes I will setup a windows this week because I have no windows and after that I will remove it as fast as possible :-) ... So maybe the olimex