Re: [quirks-uvm-devel] weekend questions
Status: Pre-Alpha
Brought to you by:
teodor
|
From: Sergei L. <sl...@is...> - 2002-04-08 12:28:08
|
> void
> c_start_procedure (ProcedureId id,
> const CellList* cell_list,
> UVM* uvm)
> {
> OrderEl i;
> CellListEl* el;
> ProcOffs po;
> /*har buf[CELL_STR_MAX_LEN+1];*/
>
> CHECK_INIT;
> po.code = ftell (out_file);
> --------^^^-------
>
> It seems ftell return -1 for stdin which is unaccepteble for next code.
>
OK. Well. It wasn't a good idea. (I tried perform verification of code
by fixing
a file offset while writing and check it when reading the file. But in
all other cases,
*.ru files are always processed with sequential access).
I think throw out all ftell stuff from the VM code. But before it I
think make a full
specification of binary code module format. It doesn't really need store
positions
(as the ftell make)
Regarding this, I think about whether to make a binary code cat -
indifferent.
For example. You have 2 files:
module1.ru
module2.ru
Then I can paste together them in one module by `cat':
cat module1.ru module2.ru > module.ru.
It is when I found a feature but don't known is it useful or not
(but actually, the coding of our binary files makes possible such
procedures).
How do you think, is it useful feature?
--
Sergei
|