[RFC] zip_vector: in-memory block compression of integer arrays

2022-08-16 Thread Michael Clark via Gcc
Hi Folks, This is an edited version of a message posted on the LLVM Discourse. I want to share what I have been working on as I feel it may be of interest to the GCC compiler developers, specifically concerning alias analysis and optimizations for iteration of sparse block-based multi-arrays.

Re: [RFC] zip_vector: in-memory block compression of integer arrays

2022-08-17 Thread Michael Clark via Gcc
On 17/08/22 7:10 pm, Richard Biener wrote: Q. Why is it specifically of interest to GCC developers? I think the best way to answer this is with questions. How can we model a block-based iterator for a sparse array that is amenable to vectorization? There are aspects to the zip_vector iterator

Re: stack arenas using alloca

2024-08-14 Thread Michael Clark via Gcc
Hi Folks, *sending again with Thunderbird because Apple Mail munged the message*. I wanted to share a seed of an idea I have been ruminating on for a while, and that is being able to return alloca memory from a function. I think it’s trivially possible by hacking the epilogue to unlink the f

Re: stack arenas using alloca

2024-08-22 Thread Michael Clark via Gcc
On 8/15/24 06:24, Michael Clark wrote: Hi Folks, *sending again with Thunderbird because Apple Mail munged the message*. I wanted to share a seed of an idea I have been ruminating on for a while, and that is being able to return alloca memory from a function. I think it’s trivially possible

Re: stack arenas using alloca

2024-08-22 Thread Michael Clark via Gcc
On 8/23/24 15:24, Michael Clark wrote: On 8/15/24 06:24, Michael Clark wrote: Hi Folks, like I said this is crazy talk as alloca isn't even in the C standard. but VLAs are, and the current implementation of VLAs depends on alloca. one more thing. it doesn't require PT_GNU_STACK or writable s

Re: stack arenas using alloca

2024-08-22 Thread Michael Clark via Gcc
On 8/23/24 15:46, Michael Clark wrote: one more thing. it doesn't require PT_GNU_STACK or writable stacks like GCC nested functions. 🙂 so I think it is safer but it does have safety issues, mostly related to stack overflows but its going to need some careful analysis with respect to ROP. brai

Re: stack arenas using alloca

2024-08-22 Thread Michael Clark via Gcc
On 8/23/24 15:57, Michael Clark wrote: On 8/23/24 15:46, Michael Clark wrote: one more thing. it doesn't require PT_GNU_STACK or writable stacks like GCC nested functions. 🙂 so I think it is safer but it does have safety issues, mostly related to stack overflows but its going to need some care

Re: #pragma once behavior

2024-09-08 Thread Michael Clark via Gcc
I like the sound of resolved path identity from search, including the constructed full path and the index within include paths. if I was writing a compiler from scratch, i'd problem do something like this: SHA2(include-path-search-offset-integer-of-found-header-to-support-include-next) + SHA2

Re: Passing a hidden argument in a dedicated register

2024-12-16 Thread Michael Clark via Gcc
> On 17 Dec 2024, at 5:44 AM, Alexander Monakov wrote: > >  >> On Mon, 16 Dec 2024, Florian Weimer via Gcc wrote: >> >> I would like to provide a facility to create wrapper functions without >> lots of argument shuffling. To achieve that, the wrapping function and >> the wrapped function sho

a super regular RISC that encodes constants in immediate blocks.

2025-03-08 Thread Michael Clark via Gcc
Hi Folks, here is an idea expressed as a simple proof-of-concept simulator. - https://github.com/michaeljclark/glyph/ I have been working on a proof-of-concept simulator for a RISC architecture with an immediate base register next to the program counter to split the front-end stream into inde