NetBSD-Users archive

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

Re: Julia on NetBSD?



On Fri, Feb 20, 2015 at 11:12:02AM +0100, Martin Husemann wrote:
> On Fri, Feb 20, 2015 at 09:56:46AM +0000, Emmanuel Dreyfus wrote:
> > A native build would requires porting GNU libunwind.
> Why?

The code contains things like this (in julia-0.3/src/task.c):

DLLEXPORT size_t rec_backtrace_ctx(ptrint_t *data, size_t maxsize, unw_context_t
 *uc)
{
    unw_cursor_t cursor;
    unw_word_t ip;
    size_t n=0;

    unw_init_local(&cursor, uc);
    do {
        if (n >= maxsize)
            break;
        if (unw_get_reg(&cursor, UNW_REG_IP, &ip) < 0) {
            break;
        }
        data[n++] = ip;
    } while (unw_step(&cursor) > 0);
    return n;          
} 

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index