[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] binutils/.../testsuite/avr

From: Ben L. Titzer
Subject: Re: [avr-gcc-list] binutils/.../testsuite/avr
Date: Mon, 6 Dec 2004 17:37:29 -0800

It looks like (from earlier posts) that a testsuite for binutils is normally done without a simulator, and that there are a couple of people working on it.

What would be great is to see what it would take to put together a testsuite for GCC for the AVR target. It would be nice to be able to catch regressions in the AVR port as early as possible.


My preliminary ideas for that would be the following: a suite of small C programs that contain a main() method that contains the various code to be tested (i.e. method calls, various expressions, complex branching, access IO registers, etc, etc) that cover a broad base of functionality. A single global variable in the C program would receive the ultimate result of that computation--for example the accumulated value of a complex loop. Then when compiled, the memory location at which that global variable is extracted from the symbol table information in the binary. That address and the expected value (which is only set to the correct value by in-program tests) can be passed to the simulator through the test file (as it is now--simply comments with @Result = <list of state predicates>).

As far as Avrora goes, all of this functionality exists and is working.

Could be a good idea to set up a robust and rigorous test suite for the code generation of avr-gcc.


The hardest thing in the world to understand is the income tax.
-- Albert Einstein

reply via email to

[Prev in Thread] Current Thread [Next in Thread]