ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
sigmaris has quit [Server closed connection]
sigmaris has joined #rust-embedded
KevinPFleming[m] has quit [Quit: Idle timeout reached: 172800s]
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
limpkin has quit [Server closed connection]
limpkin has joined #rust-embedded
glitchy has quit [Remote host closed the connection]
glitchy has joined #rust-embedded
rainingmessages has quit [Quit: bye]
rainingmessages has joined #rust-embedded
sroemer has joined #rust-embedded
Foxyloxy has joined #rust-embedded
Foxyloxy_ has quit [Ping timeout: 260 seconds]
Foxyloxy_ has joined #rust-embedded
Foxyloxy has quit [Ping timeout: 252 seconds]
danielb[m] has quit [Quit: Idle timeout reached: 172800s]
MartinSivk[m] has quit [Quit: Idle timeout reached: 172800s]
lethalbit has quit [Server closed connection]
lethalbit has joined #rust-embedded
Foxyloxy_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Foxyloxy has joined #rust-embedded
JamesMunns[m] has quit [Quit: Idle timeout reached: 172800s]
chrysn[m] has quit [Quit: Idle timeout reached: 172800s]
glitchy has quit [Remote host closed the connection]
glitchy has joined #rust-embedded
mkj[m] has quit [Quit: Idle timeout reached: 172800s]
t-moe[m] has quit [Quit: Idle timeout reached: 172800s]
wose has quit [Server closed connection]
wose has joined #rust-embedded
RockBoynton[m] has quit [Quit: Idle timeout reached: 172800s]
AdamHorden has quit [Ping timeout: 248 seconds]
AdamHorden has joined #rust-embedded
timokrgr[m] has quit [Quit: Idle timeout reached: 172800s]
sroemer has quit [Quit: WeeChat 4.5.2]
jason-kairos[m] has quit [Quit: Idle timeout reached: 172800s]
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
thejpster[m] has joined #rust-embedded
JamesMunns[m] has joined #rust-embedded
<JamesMunns[m]> In .text
<JamesMunns[m]> With the pointer living happily in .data
<thejpster[m]> Yeah :/
<whitequark[cis]> not .rodata?
<thejpster[m]> static slices are probably an anti-pattern.
<thejpster[m]> mmm, fair. Likely rodata. But in Flash, not SRAM as intended.
<whitequark[cis]> what could possibly be the benefit of placing a &[u8] in SRAM?
<whitequark[cis]> oh, i guess you could have a SoC where that gives you single-cycle access
<thejpster[m]> Yeah it’s very unlikely to be useful. Slice references are Copy anyway.
<whitequark[cis]> you definitely can't modify it, so it has to be something where the reads are different in some useful way
<whitequark[cis]> (and you can't have a &mut anything in a static)
<JamesMunns[m]> you can do fun things for the cost of a small macro tho
<thejpster[m]> The author clearly wanted the [u8] in RAM to avoid XIP cache contention and messed up latency
<thejpster[m]> whitequark[cis]: I misunderstood you here
<whitequark[cis]> whitequark[cis]: yeah, figured
<whitequark[cis]> you could have a #[link_section = ".data"] static DATA: [u8; N] = [...] like in James' example
<thejpster[m]> That is what was intended in the code example
<thejpster[m]> And confusion arose when core 0 activity affected video rendering on core 1.
<thejpster[m]> I wonder if clippy should lint for it
<thejpster[m]> As an aside, I call &[T] a slice when teaching but often later have to explain that [T] is actually the slice and &[T] is really a shared reference to a slice that knows the length of what it references.
i509vcb[m] has quit [Quit: Idle timeout reached: 172800s]
Lumpio[m] has joined #rust-embedded
<Lumpio[m]> Would anybody happen to have any ARM embedded elf binaries built with the current rustc to do a sanity check?... (full message at <https://catircservices.org/_irc/v1/media/download/AXYBtPBDaXzuyCZlSC_qrt9Ric9raO-bXN54t0WTMhujobC6Fv999_pSJw46RYMFpOc8xpqzP4g804HmUGj3r-2_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9JRllBQ2tLQUxJQmJJVUhlQVljcFhmeVk>)
<Lumpio[m]> Not that it matters a lot but elf2uf2-rs is not liking it - i patched out the check and the binary seems fine but what has changed exactly here
<Lumpio[m]> Has the ABI field changed for any of you people..?
KevinPFleming[m] has joined #rust-embedded
<KevinPFleming[m]> Yes, this has been discussed in this channel quite a few times in the past week or two, always in the context of elf2uf2-rs, and the recommendation is to use picotool instead.
<Lumpio[m]> Oh, well, serves me right for not searching!
<Lumpio[m]> Thanks