Pelles C forum

General => Chit-Chat => Topic started by: CLR on March 13, 2013, 07:39:00 PM

Title: Optlink linker source code available
Post by: CLR on March 13, 2013, 07:39:00 PM
Just a quick note.

Walter Bright announces: Optlink is on github (http://forum.dlang.org/thread/kh8q9e$2j02$1@digitalmars.com)

Excerpt from http://www.digitalmars.com/ctg/optlink.html

OPTLINK is a super-fast, high-capacity program linker. OPTLINK derives its spectacular speed from being written entirely in hand- tuned assembly language, making maximal use of multithreading and processor scheduling. It does full links faster than more pedestrian linkers do incremental links.

It should compile with MASM9 or 10. See also https://github.com/DigitalMars/optlink/pull/2
Title: Re: Optlink linker source code available
Post by: japheth on March 14, 2013, 01:44:27 PM

Thanks!

I tried to build it, but failed.

The build process does not just need Masm, but - at least - also the DM C compiler.

When I launch build_optlink.bat, it starts to compile, but after a few modules, when trying to compile ntio\printf.c,  it complains that file scio.h cannot be found.  Actually, that file isn't included and it's also nowhere in the DM installation directory. So I gave up for now.

Title: Re: Optlink linker source code available
Post by: CLR on March 14, 2013, 03:15:15 PM

Thanks!

I tried to build it, but failed.

The build process does not just need Masm, but - at least - also the DM C compiler.

When I launch build_optlink.bat, it starts to compile, but after a few modules, when trying to compile ntio\printf.c,  it complains that file scio.h cannot be found.  Actually, that file isn't included and it's also nowhere in the DM installation directory. So I gave up for now.

True. It requires the DMC source code, which is not free:
http://forum.dlang.org/thread/kcppa1$30b9$1@digitalmars.com?page=5#post-kd03at:2425op:241:40digitalmars.com (http://forum.dlang.org/thread/kcppa1$30b9$1@digitalmars.com?page=5#post-kd03at:2425op:241:40digitalmars.com)

I should have tried to compile it before posting here. I'm sorry.
Title: Re: Optlink linker source code available
Post by: japheth on March 15, 2013, 10:14:45 AM
I should have tried to compile it before posting here. I'm sorry.

My post wasn't meant to be a complaint - just some info for other adventurers. Actually, I would have been very surprised if it worked out of the box - not because I have doubts in W. Bright's skills, but because I guess that the D thing requires virtually 100% of his attention already.