On Saturday, 20 October 2012 at 18:40:51 UTC, Johannes Pfau wrote:


BTW: Here's the dmd commit which introduced betterc:
https://github.com/D-Programming-Language/dmd/commit/707949edc30f245a68145bef619f6f02b85e39ab
but right now it only disables moduleinfo generation, afaics.

This is only in dmd. Gdc does not have this. (d-glue.cc line 2827, I think)

You probably already noticed that you can compile stuff without druntime support just fine (compile with -nophoboslib), as long as you only use c functions:

It seems that cross compilers does not use standard includes and libraries by default. I have my own linker script anyway, because I have fixed addresses and my own program to load the code to the controller. When I get that far, I have to check the extra sections the compiler generates, whether they are needed or not.

I naturally want to use classes. A test of a simple class:
class mytest
{
  int atest(int m) { return m; }
}

This makes 6 calls to Object and 5-6 calls to other druntime classes or to functions druntime wants from os.


Reply via email to