Eigenstate: myrddin-dev mailing list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash when using sizeof in array size


Should be fixed -- they weren't being wired into the dependency graph.

Keep in mind that the library scraping doesn't do anything on object files, so
you'll probably get missing symbols. Linking .o files is mosly going to be useful
for giving the linker huge binary blobs, or the output of gen rules.

On Mon, 31 Jul 2017 12:13:19 -0500
Ryan Gonzalez <rymg19@xxxxxxxxx> wrote:

> 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/
> 


-- 
Ori Bernstein <ori@xxxxxxxxxxxxxx>

References:
Crash when using sizeof in array sizeRyan Gonzalez <rymg19@xxxxxxxxx>
Re: Crash when using sizeof in array sizeOri Bernstein <ori@xxxxxxxxxxxxxx>
Re: Crash when using sizeof in array sizeRyan Gonzalez <rymg19@xxxxxxxxx>