zambotti@wpowz.enet.dec.com (Walter Zambotti DEC) (06/21/91)
Hi there, this article follows on from the "open() + shareable = no disk" article. Someone asked that when I had a working version of ln(1) ready to please say so. Well I'm saying so! So how do we distribute the code around. Should I mail it here? Stick it in the list server or what? The first draft is a test and debugging version only. The debugging version is verbose to the point it tells you when its about to increment the program counter (not really). The test version is the same but all the writeln's & printf's have been removed but it still checks for all possible errors. The test version size is just over 3k. The debug version is just over 8k. I told you it was verbose! The debug version works on the /r0 device as well as it doesn't open files in non-sharing mode. But the test version does open files in non-sharing mode so it wont work on /r0. The next stage is to hand optimise the assembly generated by the C compiler to make it tiny winy and remove all library calls and remove any cstart.r dependencies. Hopefully this will get the final size down to less than 1k. I have done some testing and all seems to work well. The ls(1) command in recursive mode gets a little lost if you link a directory to a directory at higher level but that was expected! regards, Walter