 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
On 14/10/2017 18:32, Stephen wrote:
> Just for practice I compiled nocomment. It runs in a DOS box BTW
thanks.
fwiw, I had a look at the zip and am a bit perplexed by the size of
executable. until I read your "drat!" follow-up (:-)) I'd thought that
nocomment.exe had not been compiled for dynamic linking; 164K vs 15K on
my machine, nearly 11 times larger.
I think cygwin has strip(1) installed, you can run
$ strip -s nocomment.exe
without impairing functionality, and hopefully the respective sizes will
compare better. (compiling w/out optimisation options too would leave
it larger)
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 14/10/2017 21:41, Kenneth wrote:
> Stephen <mca### [at] aol com> wrote:
>
>>
>> I had a third route. It was to wait for you to work it out and get a
>> crib from you. ;-)
>
> Ha!
Took me a month to get round to it. So thanks for a kick up the
bahookie. ;-)
>
> hey, thanks for working this out! I may just give it a try-- after consulting my
> Greek translation book ;-) And Googling some more, of course...
>
>
It was about time I learned the very basics. :-)
How I would run it, at first. (I've not tried to make it fail.)
Create a directory. Copy cygwin1.dll, nocomment.exe and my_file.pov there.
Open cmd.exe at the directory (In the LH panel of your browser, Shift +
right click and "Open Command window here. At least in Win7) That opens
a DOS command window.
Type nocomment my_file.pov then enter.
The program created nc_my_file.pov
I've not really tested it other than running one Pov file through it and
that probably did not have any /* ... */ comments.
--
Regards
Stephen
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 14/10/2017 22:06, jr wrote:
> hi,
>
> On 14/10/2017 18:32, Stephen wrote:
>> Just for practice I compiled nocomment. It runs in a DOS box BTW
>
> thanks.
>
> fwiw, I had a look at the zip and am a bit perplexed by the size of
> executable. until I read your "drat!" follow-up (:-)) I'd thought that
> nocomment.exe had not been compiled for dynamic linking; 164K vs 15K on
> my machine, nearly 11 times larger.
>
> I think cygwin has strip(1) installed, you can run
>
> $ strip -s nocomment.exe
>
> without impairing functionality, and hopefully the respective sizes will
> compare better. (compiling w/out optimisation options too would leave
> it larger)
>
I'll give that a try later. <- When he is sober. </Stephen's better self>
--
Regards
Stephen
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Am 14.10.2017 um 14:42 schrieb Kenneth:
> jr <cre### [at] gmail com> wrote:
>
>>
>> sorry, my bad. forgot to state it's for GNU/Linux systems, although, if
>> you do run something like 'cygwin' or 'mingw', that should work too.
>>
>
> :-(
>
> Well, there are two routes I can go (or both, if I ever have the time!):
> Learning to use cygwin, and/or learning to use Visual Studio-- both of which are
> Greek to me at the moment, sad to say. (I've never 'compiled' anything-- very
> embarrassing.) But I *have* been trying to familiarize myself with what both of
> those tools do, per your suggestion :-) I've recognized for a long time that I
> need to 'bite the bullet' and learn how to write and compile at least *small*
> programs (on Windows)--to get my feet wet, so to speak, and to banish that
> daunting feeling of "Oh, that looks to be SO hard." Of course, that's the way I
> felt when I first came across POV-Ray-- which now seems easy and natural!
>
> Practice, practice, practice...
Windows 10 users might also be able to resort to the "Windows subsystem
for Linux"; from what I've heard, as of the Fall Creators Update it's an
official part of the system. (Prior to that it was an optional
beta-stage component that required separate installation.)
The subsystem is effectively an Ubuntu system, and is confirmed ok for
compiling and running POV-Ray, so it should be good enough for
"nocomment" as well.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
On 15/10/2017 17:13, clipka wrote:
> The subsystem is effectively an Ubuntu system, and is confirmed ok for
> compiling and running POV-Ray, so it should be good enough for
> "nocomment" as well.
does it have flex(1) installed?
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Am 15.10.2017 um 18:54 schrieb jr:
> hi,
>
> On 15/10/2017 17:13, clipka wrote:
>> The subsystem is effectively an Ubuntu system, and is confirmed ok for
>> compiling and running POV-Ray, so it should be good enough for
>> "nocomment" as well.
>
> does it have flex(1) installed?
I don't get anything for "man flex", so apparently it's not installed,
but "apt list flex" lists "flex/xenial 2.6.0-11 amd64", so apparently
it's available.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
On 15/10/2017 18:20, clipka wrote:
> Am 15.10.2017 um 18:54 schrieb jr:
>> does it have flex(1) installed?
> I don't get anything for "man flex", so apparently it's not installed,
> but "apt list flex" lists "flex/xenial 2.6.0-11 amd64", so apparently
> it's available.
thanks.
> Windows 10 users might also be able to resort to the "Windows subsystem
> for Linux"; from what I've heard, as of the Fall Creators Update it's an
> official part of the system. (Prior to that it was an optional
> beta-stage component that required separate installation.)
given that you're a quote Windows Jockey with said subsystem in place +
working, it'd be nice if you could verify that 'nocomment' will indeed
build, since Stephen has already demonstrated that the cygwin route does
work.
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
clipka <ano### [at] anonymous org> wrote:
> I don't get anything for "man flex", so apparently it's not installed,
You should work out more. ;)
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 14/10/2017 22:06, jr wrote:
>
> I think cygwin has strip(1) installed, you can run
>
> $ strip -s nocomment.exe
>
> without impairing functionality, and hopefully the respective sizes will
> compare better. (compiling w/out optimisation options too would leave
> it larger)
>
Attached is the shrunken file. 16k
--
Regards
Stephen
Post a reply to this message
Attachments:
Download 'nocomment.zip' (7 KB)
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
On 15/10/2017 19:14, Stephen wrote:
> On 14/10/2017 22:06, jr wrote:
>> $ strip -s nocomment.exe
> Attached is the shrunken file. 16k
phew. :-) thanks.
and 'tga2df3_2'? ~9.5K here.
regards ,jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |