ELLCC Now Available for Windows

Last week someone mentioned that he’d like to run the ELLCC cross development tools on an operating system called “Windows”. Doing a little goolging proved that he might not be alone. Windows seems to be fairly popular, rivaling even Linux in popularity on the desktop. I decided to see what it would take to get ELLCC running on Windows. I spent the day Saturday installing MinGW-w64 on my development system and tweaking the ELLCC build rules to use it. The result is that I can now make a binary snapshot of ELLCC that runs on Windows which I have placed on the ftp site at ftp://ellcc.org/pub.

Here is an example of the results:

C:\cygwin\home\rich>ellcc\bin\ecc.exe -target x86_64-linux-eng hello.c

C:\cygwin\home\rich>ellcc\bin\ecc-size a.out
   text    data     bss     dec     hex filename
  15595     248    1608   17451    442b a.out


If I copy a.out to my Linux box, I get:

[~] dev% ellcc/bin/ecc-size a.out
   text    data     bss     dec     hex filename
  15595     248    1608   17451    442b a.out 
[~] dev% ./a.out 
hello world
[~] dev%

You can also use the work-in-progress ELK bare metal environment:

C:\cygwin\home\rich>ellcc\bin\ecc.exe -target arm-elk-engeabi hello.c -g

C:\cygwin\home\rich>ellcc\bin\ecc-size.exe a.out
   text    data     bss     dec     hex filename
  76923    2744   23096  102763   1916b a.out


If you have QEMU installed on your Windows box, you can run the bare metal executable as described in a previous blog post.

This makes it theoretically possible for me to do further development of ELLCC on Windows. I don’t think I will though.

Leave a Reply

Your email address will not be published.