Ask a Question related to UNIX Programming, Design and Development.
-
Lorenzo Villari #1
How to reduce code?
I premise I'm not a C expert...
I'm trying to modify some sources and I can't figure out what's the cause
of a crash...
If I could reduce the code I think I would isolate the problem...
but unfortunately I can not do it because it uses a parser created
automatically by yacc and a lexer created automatically by lex...
what do you think I can do to reduce the code?
As I was saying I'm not an expert and creating from scratch a parser and
lexer that could behave like that is beyond my possibilities...
Lorenzo Villari Guest
-
reduce file sizes
Acrobat Professional 1) I tried to reduce the file sizes, but it gets an error " The PDF contained image masks that were not downsampled. " and... -
How do you reduce DL time
I've got a Flash MX file I'm only half way finished producing. As it stands now it will take over 710 seconds to download at 56.6 k per second. Is... -
Best way to reduce pdf?
instead of cropping double click the background layer in the layer pallete that will turn it into a layer then go to the select drop down menu and... -
how to reduce PHP code volume
HI; I have made a database driven page, using php and mysql, when i made my table and rows and colums for inserting the php code( recordset)... -
Need help to reduce the duplicate php code
Steven wrote: <snip> The following code should work for an arbitrary number of _POST vars. It could be modified to check for specifics (SSN is... -
scriptOmatic #2
Re: How to reduce code?
Lorenzo Villari wrote:
You mention lex and yacc. When you compile you can add switches to the>
> I premise I'm not a C expert...
> I'm trying to modify some sources and I can't figure out what's the cause
> of a crash...
>
> If I could reduce the code I think I would isolate the problem...
> but unfortunately I can not do it because it uses a parser created
> automatically by yacc and a lexer created automatically by lex...
> what do you think I can do to reduce the code?
>
> As I was saying I'm not an expert and creating from scratch a parser and
> lexer that could behave like that is beyond my possibilities...
lex and yacc lines that will automatically help you debug the code.
For lex I think it is -d.
man lex
man yacc
FYI: are you sure you are using lex (not flex) and yacc (not bison)?
flex and bison are the GNU replacements for lex/yacc.
--
[url]http://ftp.opensysmon.com[/url] is a shell script archive site with an
open source system monitoring and network monitoring software package.
Many platforms are supplied already compiled.
scriptOmatic Guest
-
Lorenzo Villari #3
Re: How to reduce code?
In fact I'm using Flex and Bison...> FYI: are you sure you are using lex (not flex) and yacc (not bison)?
>
Lorenzo Villari Guest
-
David Schwartz #4
Re: How to reduce code?
"Lorenzo Villari" <vlllnz@tiscali.it> wrote in message
news:9owUa.205681$lK4.5899873@twister1.libero.it.. .
You could compile with '-g' and then do a post-mortem debug with 'gdb'> I premise I'm not a C expert...
> I'm trying to modify some sources and I can't figure out what's the cause
> of a crash...
on the core file. The exact options and program might be different on your
platform, but most UNIX machines provide a way to get detailed core dumps
and do a post-mortem analysis on them. This assumes the crash you are
referring to is a fatal crash that causes the program to stop executing.
DS
David Schwartz Guest



Reply With Quote

