Re: Why Bloat Is Still Software's Biggest Vulnerability

Liste des GroupesRevenir à e design 
Sujet : Re: Why Bloat Is Still Software's Biggest Vulnerability
De : occassionally-confused (at) *nospam* nospam.co.uk (Peter)
Groupes : sci.electronics.design
Date : 13. Mar 2024, 18:29:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <ussk9p$v99p$2@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Forte Agent 3.3/32.846

 Don Y <blockedofcourse@foo.invalid> wrote:

On 3/12/2024 6:10 AM, Peter wrote:
 
  RichD <r_delaney2001@yahoo.com> wrote:
 
Given these considerations, does anybody write assembly code for
modern RISC processors?
 
Yes; some stuff cannot be done in C. Start with loading SP. No way in
C!
>
Doing anything that isn't memory-mapped; how would you generate "I/O"
instructions (for processors with I/O spaces)?

I think I/O is rare; it tends to be memory mapped.

Using any part of the instruction set that isn't directly mapped
to native C constructs (how would you access support for BCD
data types?  special commands to control interrupts?  opcodes to
control atomic operations/synchronization?)
>
Some code in an RTOS is not possible in C. Look at the FreeRTOS
sourcecode. There are bits of asm in there.
 
Also asm has great uses for protecting from optimisation (which can
change silently by upgrading the compiler!). Asm never gets modified;
essential when talking to devices needing specific minimum /CS timing
etc.
>
This is changing.  Lots of ongoing work in optimizing and
super-optimizing assembly language code.  Even arguments
being made that compilers should NOT be generating (final)
ASM, from HLL sources cuz it forces them to know too
much about the underlying hardware... things that a
(truly) "optimizing assembler" is better suited to knowing.

I'll leave that to the next generation. I want to make a bit of money
now :)

Date Sujet#  Auteur
12 Mar 24 * Re: Why Bloat Is Still Software's Biggest Vulnerability5Peter
12 Mar 24 `* Re: Why Bloat Is Still Software's Biggest Vulnerability4Don Y
13 Mar 24  `* Re: Why Bloat Is Still Software's Biggest Vulnerability3Peter
14 Mar 24   `* Re: Why Bloat Is Still Software's Biggest Vulnerability2Don Y
14 Mar 24    `- Re: Why Bloat Is Still Software's Biggest Vulnerability1Bill Sloman

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal