[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT2 performance for number crunching
- From: Miles Bader <miles@...>
- Date: Tue, 22 Feb 2011 11:06:44 +0900
Alex Bradbury <asb@asbradbury.org> writes:
>> Wouldn't argv[0] that is given to main() work for Linux?
>> I guess in the situation where luajit is .so, .dll, or .dylib that won't be
>> easy. But maybe there is a compiler specific global __argv, etc.
>
> I don't think you can guarantee argv[0] is always set appropriately
> (though it will be for anything launched from a shell). The logic is
> more complicated - you'd have to check in cwd, then through every path
> in $PATH.
... and even then, it's not guaranteed, though it will work in "typical"
usage.
-miles
--
Neighbor, n. One whom we are commanded to love as ourselves, and who does all
he knows how to make us disobedient.
- References:
- LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Leo Razoumov
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Mike Pall
- Re: LuaJIT2 performance for number crunching, Francesco Abbate
- Re: LuaJIT2 performance for number crunching, Mike Pall
- Re: LuaJIT2 performance for number crunching, T T
- Re: LuaJIT2 performance for number crunching, steve donovan
- Re: LuaJIT2 performance for number crunching, T T
- Re: LuaJIT2 performance for number crunching, Alex Bradbury
- Re: LuaJIT2 performance for number crunching, Dimiter "malkia" Stanev
- Re: LuaJIT2 performance for number crunching, Alex Bradbury