Re: Asm source code page?

"Jon Kirwan [email protected] [msp430]" <[email protected]> Tue, 12 Jan 2016 13:28:40 -0800
Newsgroups gmane.comp.hardware.texas-instruments.msp430.discuss
Organization Infinite Factors
Message-ID <[email protected]>
On Tue, 12 Jan 2016 10:04:54 +0100, David wrote:

><snip>
>gcc will generate better
>code than most assembler programmers in many circumstances - assuming
>the code has to be written in a clear, understandable, safe,
>maintainable manner.
><snip>

Although we've discussed the subject in the long past here,
this really has very little to do with the current thread
started by Craig. Craig was interested in "sample code in
Asm."

While I do think there are a number of related topics to the
question of sample assembly code (for example, which
assembler tool is in use so that the appropriate sample
source can be suggested -- gas assembler is quite different
from IAR, as we both know), I don't for a second imagine that
his question should instill a response saying that gcc
generates better code than "most assembler programers," which
seems more about uncovering some old sore point than anything
else. (Besides, there are a few folks here who are definitely
better than "most assembler programmers.")

Jon

P.S. I'm currently engaged in writing scalable software under
Windows, where there may be server boards with 4 CPUs, each
with 16 available cores on them (perhaps more, soon.) This
means 64 parallel threads. In this venue, with extremely high
bandwidth and loading, I'm finding the need to use specific
data structures as well as software transactional memory in
order to greatly reduce the need for synchronization
(avoidable serialization is bad) or even low level memory
barriers or acquire/release semantics. The compilers are good
and functional programming approaches really start to blossom
well here. Functional programming, with appropriate data
structure arrangements, really achieves a lot for
applications (without having to delve into assembly.) So this
area probably makes me very much aware of certain areas where
assembly coding for application programmers (as opposed to
assembly coding for operating system programmers) makes less
sense than before. We're talking multi-core and sophisticated
server applications, so the focus has to be elsewhere. But I
still wouldn't go around trying to stimulate yet another
debate about some compiler vs some hypothesized assembler
programmer. The debate is especially pointless as Craig was
asking specifically about sample assembly code, unless your
whole focus in life is about convincing people they should
not be doing what they are already doing.


------------------------------------
Posted by: Jon Kirwan <[email protected]>
------------------------------------

To unsubscribe from the msp430 group, send an email to:
[email protected]