Hi,
Is there a way to pass a record by reference to a function or procedure ?
I need multiple FIFO queues for my project, but jallib implements this as multiple libraries, each identical to other in code, but maintaining separate data. (queue01.jal, queue02.jal...queue08.jal...etc)
That is a lot of waste of code-space which I can't afford. Passing record by reference to can remedy that. But I can't find a way to do it. Jal passes records by value, so any array within record gets duplicated before function call & written after the function call. Again lot of code space as well as RAM if buffers are large.
Also in queue01.jal, there is declaration,
var volatile byte*queue01_element_size queue01_data[queue01_size + 1]
And later,
function queue01_nb_get(byte*queue01_element_size out v) return bit is
...
v = queue01_data[queue01_out_pointer]
...
end function
What exactly is this "byte*xxx" syntax ?
Thanks,
sam_des