A memory question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • poison.summer@gmail.com

    #1

    A memory question

    Hello it takes about 30M memory to run my program.
    Can anyone give me some suggestions on why it costs so much memory?
    Thanks a lot!

  • Artie Gold

    #2
    Re: A memory question

    poison.summer@g mail.com wrote:[color=blue]
    > Hello it takes about 30M memory to run my program.
    > Can anyone give me some suggestions on why it costs so much memory?
    > Thanks a lot!
    >[/color]
    It's obviously due to what you're doing on line 42.

    [Seriously, though, how would *anyone* know -- or even hazard a
    reasonable guess -- without some relevant information?]

    HTH,
    --ag
    --
    Artie Gold -- Austin, Texas
    I will (ir)regularly write about things that are important to me -- that I hope interest you. Of course, since I see most things as being political, that will be most of it.

    http://www.cafepress.com/goldsays
    "If you have nothing to hide, you're not trying!"

    Comment

    • Michael Mair

      #3
      Re: A memory question

      poison.summer@g mail.com wrote:[color=blue]
      > Hello it takes about 30M memory to run my program.
      > Can anyone give me some suggestions on why it costs so much memory?[/color]

      You are using that much.
      You are wasting part of it.

      Your request is definitely off-topic in comp.lang.c
      For questions about algorithms and data structures, consider
      asking in comp.programmin g.

      -Michael
      --
      E-Mail: Mine is an /at/ gmx /dot/ de address.

      Comment

      • Kenneth Brody

        #4
        Re: A memory question

        poison.summer@g mail.com wrote:[color=blue]
        >
        > Hello it takes about 30M memory to run my program.
        > Can anyone give me some suggestions on why it costs so much memory?[/color]

        You have an error on line 42.

        --
        +-------------------------+--------------------+-----------------------------+
        | Kenneth J. Brody | www.hvcomputer.com | |
        | kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer .h> |
        +-------------------------+--------------------+-----------------------------+
        Don't e-mail me at: <mailto:ThisIsA SpamTrap@gmail. com>

        Comment

        • Artie Gold

          #5
          Re: A memory question

          Kenneth Brody wrote:[color=blue]
          > poison.summer@g mail.com wrote:
          >[color=green]
          >>Hello it takes about 30M memory to run my program.
          >>Can anyone give me some suggestions on why it costs so much memory?[/color]
          >
          >
          > You have an error on line 42.
          >[/color]
          So we agree. We must be right. Or not. ;-)

          --ag

          --
          Artie Gold -- Austin, Texas
          http://goldsays.blogspot.com (new post 8/5)
          http://www.cafepress.com/goldsays
          "If you have nothing to hide, you're not trying!"

          Comment

          • poison.summer@gmail.com

            #6
            Re: A memory question

            Sorry could you please explain more detailedly?
            What's line 42?
            Thanks a lot!

            Comment

            • Keith Thompson

              #7
              Re: A memory question

              poison.summer@g mail.com writes:[color=blue]
              > Sorry could you please explain more detailedly?
              > What's line 42?
              > Thanks a lot![/color]

              Assuming you're serious ...

              "line 42" is a wild guess about where the problem in your program
              might be. It's a joke. Since you've given us absolutely no useful
              information that would help us answer your question, that's the best
              we can do.

              And please don't assume we can see the article to which you're
              replying. You need to provide some context. Google makes it
              gratuitously difficult to do this properly, but there is a workaround
              (that's been posted here over 1000 times).

              If you want to post a followup via groups.google.c om, don't use
              the broken "Reply" link at the bottom of the article. Click on
              "show options" at the top of the article, then click on the
              "Reply" at the bottom of the article headers.

              And please complain to Google about their broken interface. They can
              do whatever they like with their own private non-Usenet groups, but
              they are damaging Usenet, something that's been around decades longer
              than they have.

              --
              Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
              San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
              We must do something. This is something. Therefore, we must do this.

              Comment

              • Ben Pfaff

                #8
                Re: A memory question

                poison.summer@g mail.com writes:
                [color=blue]
                > Sorry could you please explain more detailedly?
                > What's line 42?[/color]

                It means "we don't know anything about your program or your
                system, so we can't tell you why it's using a lot of memory."
                --
                "For those who want to translate C to Pascal, it may be that a lobotomy
                serves your needs better." --M. Ambuhl

                "Here are the steps to create a C-to-Turbo-Pascal translator..." --H. Schildt

                Comment

                • Eric Sosman

                  #9
                  Re: A memory question



                  poison.summer@g mail.com wrote On 11/16/05 16:22,:[color=blue]
                  > Sorry could you please explain more detailedly?
                  > What's line 42?[/color]

                  It's the successor of the successor of the successor of
                  the successor of the successor of the successor of the successor
                  of the successor of the successor of the successor of the
                  successor of the successor of the successor of the successor
                  of the successor of the successor of the successor of the
                  successor of the successor of the successor of the successor
                  of the successor of the successor of the successor of the
                  successor of the successor of the successor of the successor
                  of the successor of the successor of the successor of the
                  successor of the successor of the successor of the successor
                  of the successor of the successor of the successor of the
                  successor of the successor of the successor of line 1.

                  And, to anticipate your follow-up question: line 1 is
                  the first line you did not show us.

                  "Doctor, I don't feel so good. What's wrong?"

                  "Based on the information you've provided, I conclude
                  that there's something wrong with your body. Pay the
                  receptionist on your way out. Next!"

                  --
                  Eric.Sosman@sun .com

                  Comment

                  • Mark McIntyre

                    #10
                    Re: A memory question

                    On 16 Nov 2005 11:48:23 -0800, in comp.lang.c ,
                    poison.summer@g mail.com wrote:
                    [color=blue]
                    >Hello it takes about 30M memory to run my program.
                    >Can anyone give me some suggestions on why it costs so much memory?[/color]

                    30M isn't a lot. When your programme takes 8GB, then you can
                    complain...

                    Seriously tho, who knows? You've not said anything at all about what
                    your programme does., or shown any code fragments.
                    --
                    Mark McIntyre
                    CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
                    CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt >

                    ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
                    http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
                    ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

                    Comment

                    • Mark McIntyre

                      #11
                      Re: A memory question

                      On 16 Nov 2005 13:22:33 -0800, in comp.lang.c ,
                      poison.summer@g mail.com wrote:
                      [color=blue]
                      >Sorry could you please explain more detailedly?
                      >What's line 42?[/color]

                      Please read the Hitchikers Guide to the Galaxy. The meaning of "42"
                      will then become clear.

                      Also, please read my sig
                      --
                      Please quote enough of the previous message for context. To do so from
                      Google, click "show options" and use the Reply shown in the expanded
                      header.

                      ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
                      http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
                      ----= East and West-Coast Server Farms - Total Privacy via Encryption =----

                      Comment

                      • Mike Wahler

                        #12
                        Re: A memory question


                        <poison.summer@ gmail.com> wrote in message
                        news:1132176153 .434715.244240@ g43g2000cwa.goo glegroups.com.. .[color=blue]
                        > Sorry could you please explain more detailedly?
                        > What's line 42?[/color]

                        Load your program into a text editor. Scroll
                        to line 42. Look at it.

                        -Mike


                        Comment

                        • haroon

                          #13
                          Re: A memory question


                          poison.summer@g mail.com wrote:[color=blue]
                          > Sorry could you please explain more detailedly?
                          > What's line 42?
                          > Thanks a lot![/color]

                          may be this can help.


                          Comment

                          • Ingo Menger

                            #14
                            Re: A memory question


                            poison.summer@g mail.com schrieb:
                            [color=blue]
                            > Hello it takes about 30M memory to run my program.[/color]

                            How do you know that?
                            [color=blue]
                            > Can anyone give me some suggestions on why it costs so much memory?[/color]

                            Only if you can give me a suggestion on why I need around 1000 galloons
                            of heating oil per annum to heat my home.

                            Comment

                            • Kenneth Brody

                              #15
                              Re: A memory question

                              Ingo Menger wrote:[color=blue]
                              >
                              > poison.summer@g mail.com schrieb:
                              >[color=green]
                              > > Hello it takes about 30M memory to run my program.[/color]
                              >
                              > How do you know that?
                              >[color=green]
                              > > Can anyone give me some suggestions on why it costs so much memory?[/color]
                              >
                              > Only if you can give me a suggestion on why I need around 1000 galloons
                              > of heating oil per annum to heat my home.[/color]

                              Obviously, your furnace has an error on line 42. :-)

                              --
                              +-------------------------+--------------------+-----------------------------+
                              | Kenneth J. Brody | www.hvcomputer.com | |
                              | kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer .h> |
                              +-------------------------+--------------------+-----------------------------+
                              Don't e-mail me at: <mailto:ThisIsA SpamTrap@gmail. com>


                              Comment

                              Working...