[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crash when using sizeof in array size
- Subject: Re: Crash when using sizeof in array size
- From: Ryan Gonzalez <rymg19@xxxxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Mon, 31 Jul 2017 12:13:19 -0500
- To: Ori Bernstein <ori@xxxxxxxxxxxxxx>
- Cc: myrddin-dev <myrddin-dev@xxxxxxxxxxxxxx>
Thanks! It works now.
...though I found an mbld bug. You can't create a binary out of just
object files. This does absolutely NOTHING:
mbld -bx x.o
I tried printing debugging output and got this:
ryan@DevPC-LX2 ~/uproc $ mbld -d -bx x.o
unreachable
Aborted (core dumped)
ryan@DevPC-LX2 ~/uproc $
On Sun, Jul 30, 2017 at 8:41 PM, Ori Bernstein <ori@xxxxxxxxxxxxxx> wrote:
> Oops.
>
> The frontend didn't know about sizeof() so it couldn't fold it. Added a hook
> so that the backend can give fold() a sizeof function. It should work now.
>
> On Sun, 30 Jul 2017 20:10:32 -0500, Ryan Gonzalez <rymg19@xxxxxxxxx> wrote:
>
>> const f = {
>> var buf: byte[sizeof(int)]
>> }
>
> --
> Ori Bernstein
--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
http://refi64.com/