POV-Ray : Newsgroups : povray.binaries.misc : nocomment Server Time
2 Dec 2022 16:59:12 EST (-0500)
  nocomment (Message 11 to 20 of 25)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 5 Messages >>>
From: jr
Subject: Re: nocomment
Date: 14 Oct 2017 17:06:16
Message: <59e27c48$1@news.povray.org>
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

From: Stephen
Subject: Re: nocomment
Date: 14 Oct 2017 17:21:32
Message: <59e27fdc$1@news.povray.org>
On 14/10/2017 21:41, Kenneth wrote:
> Stephen <mca### [at] aolcom> 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

From: Stephen
Subject: Re: nocomment
Date: 14 Oct 2017 17:27:28
Message: <59e28140$1@news.povray.org>
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

From: clipka
Subject: Re: nocomment
Date: 15 Oct 2017 12:13:26
Message: <59e38926$1@news.povray.org>
Am 14.10.2017 um 14:42 schrieb Kenneth:
> jr <cre### [at] gmailcom> 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

From: jr
Subject: Re: nocomment
Date: 15 Oct 2017 12:54:56
Message: <59e392e0$1@news.povray.org>
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

From: clipka
Subject: Re: nocomment
Date: 15 Oct 2017 13:20:00
Message: <59e398c0$1@news.povray.org>
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

From: jr
Subject: Re: nocomment
Date: 15 Oct 2017 13:38:50
Message: <59e39d2a$1@news.povray.org>
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

From: Bald Eagle
Subject: Re: nocomment
Date: 15 Oct 2017 13:40:01
Message: <web.59e39cadc7b9aadbacfa72180@news.povray.org>
clipka <ano### [at] anonymousorg> 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

From: Stephen
Subject: Re: nocomment
Date: 15 Oct 2017 14:14:13
Message: <59e3a575@news.povray.org>
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)

From: jr
Subject: Re: nocomment
Date: 15 Oct 2017 15:50:19
Message: <59e3bbfb$1@news.povray.org>
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

<<< Previous 10 Messages Goto Latest 10 Messages Next 5 Messages >>>

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.