Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mccoy68
PostPosted: Mar 04, 2011 - 12:23 PM
Newbie


Joined: Sep 12, 2009
Posts: 14
Location: Nuremberg / Germany

Does somebody know where they hide the labels of an assembler project?
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
rkruse
PostPosted: Mar 04, 2011 - 03:31 PM
Hangaround


Joined: Jan 19, 2005
Posts: 166
Location: Atmel Norway

This (and a few other items in AVR Studio 4 assembler project view) are still not implemented in AVR Studio 5 (for future reference: bug 12294)

- roland
 
 View user's profile Send private message  
Reply with quote Back to top
Scroungre
PostPosted: Mar 23, 2011 - 04:04 AM
Rookie


Joined: Apr 18, 2007
Posts: 44


Ohdear. That's a deal-breaker for me. I've many lengthy programs in assembler, and inability to find labels would make working on them a nightmare.

Think I'll stick with Studio 4 for now.

Scroungre
 
 View user's profile Send private message  
Reply with quote Back to top
mccoy68
PostPosted: Mar 23, 2011 - 08:32 AM
Newbie


Joined: Sep 12, 2009
Posts: 14
Location: Nuremberg / Germany

I am really wondering why nobody else complains about that. Studio 5 without labels is quite useless for assembly coders. Yes I know it's on the bug list. But when will this "bug" be resolved? Am I the last human on this planet programming AVRs with assembler?
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
JohanEkdahl
PostPosted: Mar 23, 2011 - 09:42 AM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18552
Location: Lund, Sweden

Quote:

Am I the last human on this planet programming AVRs with assembler?

I've heard of an Italian in Australia...
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
Scroungre
PostPosted: Mar 23, 2011 - 11:13 PM
Rookie


Joined: Apr 18, 2007
Posts: 44


Assembler Forever!! Smile
 
 View user's profile Send private message  
Reply with quote Back to top
themanix
PostPosted: Mar 23, 2011 - 11:24 PM
Hangaround


Joined: Jan 21, 2009
Posts: 164
Location: SE

Scroungre wrote:
Assembler Forever!! Smile

Yup, takes forever to write anything Smile
no war intended, I simply couldn't resist

where can I find
Quote:
for future reference: bug 12294)
where is the bug list ?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 24, 2011 - 09:08 AM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62294
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

where is the bug list ?

I asked that in another thread - apparently it's internal but I guess they refer to the numbers here so you can use them in correspondence if you need to.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
JohanEkdahl
PostPosted: Mar 24, 2011 - 09:24 AM
10k+ Postman


Joined: Mar 27, 2002
Posts: 18552
Location: Lund, Sweden

And hopefully the bug numbers are used in release notes (that should at least mention what bugs are fixed in the release in Q).
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
hce
PostPosted: Mar 24, 2011 - 12:18 PM
Raving lunatic


Joined: Jan 07, 2003
Posts: 4580
Location: Oslo, Norway

JohanEkdahl wrote:
And hopefully the bug numbers are used in release notes (that should at least mention what bugs are fixed in the release in Q).
They are, for example in the Known issues section of the release notes.

Release Notes for AS5 wrote:
Report #12852: Step out is slow.


Future release note will have a section called Bug Fixes, similar to http://www.atmel.com/dyn/resources/prod ... .18SP3.txt
 
 View user's profile Send private message  
Reply with quote Back to top
peret
PostPosted: Mar 24, 2011 - 07:15 PM
Raving lunatic


Joined: May 26, 2004
Posts: 2538
Location: Las Vegas, Nevada

The AVR Assembler sucks anyway. It makes the original CP/M assembler look quite sophisticated by comparison. I prefer the assembler that comes with IAR, which you can use unlimited without buying the C compiler, but unfortunately there's no way to integrate it with AVR Studio for debugging. I haven't yet worked out how to use the assembler that comes with GCC, and probably never will.
 
 View user's profile Send private message  
Reply with quote Back to top
Papabravo
PostPosted: Mar 24, 2011 - 07:17 PM
Hangaround


Joined: Oct 13, 2007
Posts: 270
Location: Michigan, USA

JohanEkdahl wrote:
Quote:

Am I the last human on this planet programming AVRs with assembler?

I've heard of an Italian in Australia...

I know an Australian, in Italy, who works on Accounting Machines.

_________________
We never have time to do it right,
but we always have time to do it over
 
 View user's profile Send private message  
Reply with quote Back to top
Papabravo
PostPosted: Mar 24, 2011 - 07:20 PM
Hangaround


Joined: Oct 13, 2007
Posts: 270
Location: Michigan, USA

peret wrote:
The AVR Assembler sucks anyway. It makes the original CP/M assembler look quite sophisticated by comparison. I prefer the assembler that comes with IAR, which you can use unlimited without buying the C compiler, but unfortunately there's no way to integrate it with AVR Studio for debugging. I haven't yet worked out how to use the assembler that comes with GCC, and probably never will.

You just need to find a copy of "Using as" along with becoming familiar with "avr32-objdump". Its not that bad really.

Try this link
http://sourceware.org/binutils/docs/as/index.html#Top

_________________
We never have time to do it right,
but we always have time to do it over
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 24, 2011 - 07:37 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62294
Location: (using avr-gcc in) Finchingfield, Essex, England

Quote:

I haven't yet worked out how to use the assembler that comes with GCC, and probably never will.

Create a Studio project with just a .S and you are halfway there. Explore -nostartfiles for the full solution.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
peret
PostPosted: Mar 24, 2011 - 08:45 PM
Raving lunatic


Joined: May 26, 2004
Posts: 2538
Location: Las Vegas, Nevada

Papabravo wrote:
You just need to find a copy of "Using as" along with becoming familiar with "avr32-objdump". Its not that bad really.

Wow, someone must have spent nearly an hour writing that documentation. But it must have taken a little longer to make sure that as syntax is incompatible with the native assemblers for all the different processor families, so that no assembler source code can ever be imported but has to be created from scratch. The effort that went in to selecting the line comment characters alone is truly impressive.
Quote:
The line comment character is `;' on the ARC; `@' on the ARM; `;' for the H8/300 family; `;' for the HPPA; `#' on the i386 and x86-64; `#' on the i960; `;' for the PDP-11; `;' for picoJava; `#' for Motorola PowerPC; `#' for IBM S/390; `#' for the Sunplus SCORE; `!' for the Renesas / SuperH SH; `!' on the SPARC; `#' on the ip2k; `#' on the m32c; `#' on the m32r; `|' on the 680x0; `#' on the 68HC11 and 68HC12; `#' on the RX; `;' on the TMS320C6X; `#' on the Vax; `;' for the Z80; `!' for the Z8000; `#' on the V850; `#' for Xtensa systems;
 
 View user's profile Send private message  
Reply with quote Back to top
Papabravo
PostPosted: Mar 24, 2011 - 08:58 PM
Hangaround


Joined: Oct 13, 2007
Posts: 270
Location: Michigan, USA

Porting native assembler code was never the intention. There are probably parts that don't even have a native assembler so to speak. Have you seen one for the AVR32?

_________________
We never have time to do it right,
but we always have time to do it over
 
 View user's profile Send private message  
Reply with quote Back to top
peret
PostPosted: Mar 24, 2011 - 09:32 PM
Raving lunatic


Joined: May 26, 2004
Posts: 2538
Location: Las Vegas, Nevada

Papabravo wrote:
Porting native assembler code was never the intention. There are probably parts that don't even have a native assembler so to speak. Have you seen one for the AVR32?

Straw man argument. If a part doesn't have a native assembler, nobody writes assembly code for it. If a family of processors - eg, Intel - has used a consistent assembler syntax for about forty years, it behooves anyone writing an assembler that purports to support it to recognize and follow that syntax wherever possible, because anyone capable of writing assembly code for that family will already have a familiarity with it and a code base from which they'd like to cut and paste. As far as I can see, as exists solely as a component of the GCC compilers and was never intended for, nor is fit for, creating software in its own right.
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Mar 24, 2011 - 09:35 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 62294
Location: (using avr-gcc in) Finchingfield, Essex, England

So not true, there are large parts of the Linux kernel written in as format for 20+ architectures.

EDIT:
Code:
root@eav-ws-template:~/linux-2.6.30# find . -name \*.S | wc -l
1047


Code:
=====================================================================

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Papabravo
PostPosted: Mar 25, 2011 - 04:46 AM
Hangaround


Joined: Oct 13, 2007
Posts: 270
Location: Michigan, USA

The AVR32 has no "native" assembler precisely because it was easier for Atmel to modify the open source 'as' than it was to roll their own from scratch. Forty years ago, in 1971, we did not think too much of the assemblers available for the 8008, but we did work with them and produced working products.

Hell we even built our on CPUs from 74181 ALU slices and there was nobody to write assemblers for us, ya bunch of whinners

_________________
We never have time to do it right,
but we always have time to do it over
 
 View user's profile Send private message  
Reply with quote Back to top
peret
PostPosted: Mar 25, 2011 - 03:45 PM
Raving lunatic


Joined: May 26, 2004
Posts: 2538
Location: Las Vegas, Nevada

Papabravo wrote:
The AVR32 has no "native" assembler precisely because it was easier for Atmel to modify the open source 'as' than it was to roll their own from scratch. Forty years ago, in 1971, we did not think too much of the assemblers available for the 8008, but we did work with them and produced working products.

Speak for yourself! I thought the 8008 assembler was fantastic. It could assemble a whole 2k program during the lunch break, if the paper tape didn't jam.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits