Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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)...
    5. 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...
  3. #2

    Default Re: How to reduce code?

    Lorenzo Villari wrote:
    >
    > 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...
    You mention lex and yacc. When you compile you can add switches to the
    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

  4. #3

    Default Re: How to reduce code?


    > FYI: are you sure you are using lex (not flex) and yacc (not bison)?
    >
    In fact I'm using Flex and Bison...


    Lorenzo Villari Guest

  5. #4

    Default Re: How to reduce code?


    "Lorenzo Villari" <vlllnz@tiscali.it> wrote in message
    news:9owUa.205681$lK4.5899873@twister1.libero.it.. .
    > 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...
    You could compile with '-g' and then do a post-mortem debug with 'gdb'
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139