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

more to do...



Here is a summary of XTL's state of play on the Alpha.
Angus

examples/auto/
	Compilation:
		DEC cxx: successful
		g++ 2.95.2: triggers internal compiler error
	Running: successful

examples/graph/
	Compilation:
		DEC cxx: successful
		g++ 2.95.2: successful
	Running: successful

examples/smart/
	Compilation:
		DEC cxx: successful
		g++ 2.95.2: successful
	Running: successful

examples/tests
	compilation (both compilers) and execution of all 6 codes is successful.
	raw causes an enormous number of "unaligned access errors" as expected.
	giop and xdr cause none.

examples/bench/java
	compiles and runs successfully

examples/bench/memcpy
	compiles and runs successfully

examples/bench/rpcgen
	compilation fails:
gcc -o tests tests.c alltests_xdr.c
tests.c: In function `main':
tests.c:108: `XDR' undeclared (first use in this function)
tests.c:108: (Each undeclared identifier is reported only once
tests.c:108: for each function it appears in.)
tests.c:108: parse error before `xdrs'
tests.c:112: `xdrs' undeclared (first use in this function)
tests.c:112: `XDR_ENCODE' undeclared (first use in this function)
alltests_xdr.c: In function `xdr_strings':
alltests_xdr.c:78: warning: passing arg 5 of `xdr_vector' from incompatible poin
alltests_xdr.c: In function `xdr_arrays':
alltests_xdr.c:92: warning: passing arg 5 of `xdr_vector' from incompatible pointer type
alltests_xdr.c:95: warning: passing arg 6 of `xdr_array' from incompatible pointer type
alltests_xdr.c: In function `xdr_pointers':
alltests_xdr.c:106: warning: passing arg 4 of `xdr_pointer' from incompatible pointer type
alltests_xdr.c:109: warning: passing arg 4 of `xdr_pointer' from incompatible pointer type
alltests_xdr.c: In function `xdr_containers':
alltests_xdr.c:145: warning: passing arg 6 of `xdr_array' from incompatible pointer type
alltests_xdr.c:148: warning: passing arg 6 of `xdr_array' from incompatible pointer type
alltests_xdr.c: In function `xdr_objects':
alltests_xdr.c:230: warning: passing arg 4 of `xdr_pointer' from incompatible pointer type
alltests_xdr.c:233: warning: passing arg 4 of `xdr_pointer' from incompatible pointer type 

examples/bench/vxtl
examples/bench/xtl
	compilation is successful.
	Execution results in either core dump (xdr) or enormous numbers of
	"unaligned access errors" (giop and raw).

Investigating further, the problem lies with "mb.rewind();"
The code below works perfectly if it is commented out. Will investigate further
when I have time.

int main() {
	const int size_buf = 500*1000;
	char buf[size_buf];

	all_tests to;
	to.init();

	mem_buffer mb(buf, size_buf);
	GIOP_format<mem_buffer> gf(mb);
	obj_output<GIOP_format<mem_buffer> > os(gf);

	mb.rewind();
	for( int i=0; i<1000; i++ )
		os.simple(to);

	std::cout << mb.size() << std::endl;
}