On Thursday 15 September 2005 02:23, Sergey Plis wrote:
> I get Bus error ! ]]* when trying to use ]]*
>
> Why?

Ok, found it. The declaration in bigFORTH is reverse, i.e. you first 
declare the parameter that's last in the C function. See attached 
gsl.fs for the correct way to declare these functions.

Since in Gforth, it's usually the other way round, I'm a bit confused 
myself, too. Maybe I'll change bigFORTH's declaration to be more 
intuitive in future, too, but ATM, this way is much easier to implement 
(each declaration element just is a macro that takes one item from the 
Forth stack and pushes it on the C stack).

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/
Module GSL

also DOS

library libgslcblas libgslcblas.so
library libgsl libgsl.so.0 depends libgslcblas

legacy off

libgsl gsl_matrix_alloc int int (int) gsl_matrix_alloc 
( n m -- *gsl_matrix )
libgsl gsl_matrix_calloc int int (int) gsl_matrix_calloc 
( n m -- *gsl_matrix )
libgsl gsl_matrix_free int (void) gsl_matrix_free 
( *gsl_matrix -- )
libgsl gsl_matrix_get int int int (fp) gsl_matrix_get
( *gsl_matrix i j  -- df )
\ ******* this is the function that gives trouble **********
libgsl gsl_matrix_set df int int int (void/fp) gsl_matrix_set 
( df *gsl_matrix i j  -- )
libgsl gsl_blas_dgemm int df int int df int int (int/fp) gsl_blas_dgemm
( alpha beta int int *gsl_matrix *gsl_matrix *gsl_matrix -- n )

legacy on
previous

Module;

Attachment: pgp5oqcUJzBxG.pgp
Description: PGP signature

Reply via email to