Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Aggregate dynamic initialization #22

Open
Tracked by #349
jyn514 opened this issue Aug 28, 2019 · 1 comment
Open
Tracked by #349

Aggregate dynamic initialization #22

jyn514 opened this issue Aug 28, 2019 · 1 comment
Labels
codegen Involves generating Cranelift IR enhancement New feature or request

Comments

@jyn514
Copy link
Owner

jyn514 commented Aug 28, 2019

int main() { int a[3] = {1, 2, 3}; }
thread 'main' panicked at 'not yet implemented: aggregate dynamic initialization', src/ir.rs:211:48

Note: the way LLVM implements this is by storing the array in static memory and then loading it into the stack when the function is called. It also loads 8 bytes at a time regardless of the type of the array (at least on x86_64).

@jyn514 jyn514 added enhancement New feature or request codegen Involves generating Cranelift IR labels Aug 28, 2019
@jyn514
Copy link
Owner Author

jyn514 commented Mar 26, 2020

I plan to address this after finishing #151.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
codegen Involves generating Cranelift IR enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant