[Flashforth-devel] Warnings from assembler
Brought to you by:
oh2aun
From: Helge K. <Hel...@gm...> - 2022-12-28 08:34:02
|
Hello I am trying to evaulate a Forth for my ATmega2560. I want to work interactively but also want to able to build the turnkey with the assembler. Therefore I started with rebuilding Flashforth. I use avrasm2 version 2.2.8 as it comes with Microchip Studio 7.0. I changed the build script that it also finds the include file m256def.inc. The resulting command to compile Flashfort is: "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avrassembler\avrasm2.exe"-I "C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel\ATmega_DFP\1.6.364\avrasm\inc" -Dffm2560 -Dop0 -I asm2/include/ avr/src/ff-atmega.asm -o avr/hex/2560-16MHz-38400.hex -fI The generated HEX file is identical to the HEX file in the repository. That's great. Buit I get some compiler diagnostic messages: avr/src/macros.inc(39): warning: Register r26 already defined by the .DEF directive avr/src/ff-atmega.asm(35): info: 'avr/src/macros.inc' included from here The source code line macros.inc#39 defines the symbold t4: .def t4 = r26 (The "already defined" warning also occurs for the registers r27, r30, and r31. ) Why does the assmbler complains about r26 as already defined? Where is it defined elsewehere? I can't find a second #include statement that would cause the file macros.inc included twice. Did I miss something? There is also a warning about "Use of undefined or forward referenced symbol". But that's just a forward reference. It would be nice to suppress that warning. But it looks that the assembler isn't that decent to disable specific warnings. Best reagards, Helge |