Re: Crash when using sizeof in array size
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: Re: Crash when using sizeof in array size
- From: Ori Bernstein <ori@xxxxxxxxxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Mon, 31 Jul 2017 14:28:33 -0700
- To: myrddin-dev@xxxxxxxxxxxxxx
- Cc: Ryan Gonzalez <rymg19@xxxxxxxxx>
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>
Crash when using sizeof in array size | Ryan Gonzalez <rymg19@xxxxxxxxx> |
Re: Crash when using sizeof in array size | Ori Bernstein <ori@xxxxxxxxxxxxxx> |
Re: Crash when using sizeof in array size | Ryan Gonzalez <rymg19@xxxxxxxxx> |
- Prev by Date: Re: Crash when using sizeof in array size
- Previous by thread: Re: Crash when using sizeof in array size
- Index(es):