Gast
#237759
Hi,
ich fange gerade an etwas mit der AVRlib zu arbeiten und bin etwas
stutzig geworden. Folgendes Programm:
//----- Include Files
---------------------------------------------------------
#include <avr/io.h> // include I/O definitions (port names, pin
names,
etc)
#include <avr/signal.h> // include "signal" names (interrupt names)
#include <avr/interrupt.h> // include interrupt support
#include <avr/pgmspace.h>
#include "global.h" // include our global settings
#include "uart.h" // include uart function library
#include "rprintf.h" // include printf function library
#include "timer.h" // include timer function library
int main(void)
{
while(1)
{
}
}
Ergibt folgende Speicherbelegung:
AVR Memory Usage:
-----------------
Device: atmega16
Program: 4562 bytes (27.8% Full)
(.text + .data + .bootloader)
Data: 202 bytes (19.7% Full)
(.data + .bss + .noinit)
4562 Bytes für ein Programm das noch nichts macht außer in einer
Endlosschleife zu hängen finde ich etwas arg viel. Was knallt denn da
so übermäßig den Speicher zu? rprintf?