[PATCH RFC v2] algol68: Add allocation function for leaf objects

Jose E. Marchesi jemarch@gnu.org
Tue Jan 13 23:10:21 GMT 2026


Hi Pietro.

Given that on the compiler side the leaf switch is very likely known at
compile time, wouldn't it be better to define two malloc functions in
the runtime and thus avoid the conditional in

> +  if (leaf)
> +    res = (void *) GC_MALLOC_ATOMIC (size);
> +  else
> +    res = (void *) GC_MALLOC (size);
> +

at the cost of an extra symbol exported from libga68?


More information about the Algol68 mailing list