Search:

Type: Posts; User: chacham15

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,039

    Another makefile question

    I have a recursive make structure (i.e. make calls the makefiles in subdirectories). I am in the process of generalizing this and so I made a target called subdirs as follows:

    subdirs:
    ...
  2. Replies
    10
    Views
    3,182

    Yes, that does work, but then its a pain to move...

    Yes, that does work, but then its a pain to move a file..which happens surprisingly often. Any other ideas?

    Thanks,
    chacham15
  3. Replies
    10
    Views
    3,182

    Oh, I want to see the compile command because...

    Oh, I want to see the compile command because that way, Im sure that the file has been recompiled. I dont completely trust that the makefile is without flaws yet.
  4. Replies
    10
    Views
    3,182

    Yes, but they are often hard to find. Compare...

    Yes, but they are often hard to find. Compare finding the warning in this set with the one after it.

    gcc -c -I ../../src str.c
    gcc -c -I ../../src bmp.c
    gcc -c -I ../../src hashtable.c
    gcc -c...
  5. Replies
    10
    Views
    3,182

    what I want to see is something like: gcc -c...

    what I want to see is something like:

    gcc -c -I ../../src str.c
    gcc -c -I ../../src bmp.c
    gcc -c -I ../../src hashtable.c
    gcc -c -I ../../src linkedlist.c
    gcc -c -I ../../src threads.c
    gcc -c...
  6. Replies
    10
    Views
    3,182

    >The -I option to the compiler needs to be...

    >The -I option to the compiler needs to be exactly the directory that you want to include files from

    Yes, I know. That is why I was hoping that there would be some other option that would tell gcc...
  7. Replies
    10
    Views
    3,182

    Quick Compilation Question

    I have a directory structure somewhat like the whats below with many more levels and many more source and header files. In all the source files, the headers are included with "String.h" regardless of...
  8. Replies
    15
    Views
    4,437

    Oddly enough, it works on Vista... (maybe thats...

    Oddly enough, it works on Vista... (maybe thats because UAC is off). All that Im doing is overwriting the function call with NOPs. Those other methods dont work because, they A. require templating,...
  9. Replies
    18
    Views
    14,598

    Longjump can return me to my code from that. Does...

    Longjump can return me to my code from that. Does it just remember the register state and restore it? So does this mean that functions with this option cannot return? Because if they can, then...
  10. Replies
    15
    Views
    4,437

    Thanks Salem. matsp the reason that I dont want...

    Thanks Salem. matsp the reason that I dont want to write 8 different functions (although youre right that I could) is for maintainability purposes. For each new switch that occurs the number of...
  11. Replies
    15
    Views
    4,437

    slingerland3g, you are right. I changed the size...

    slingerland3g, you are right. I changed the size to 8000, which is wayy too large and it at least now prints out "About to call p". What should size be set to? I tried to use the labels to measure...
  12. Replies
    15
    Views
    4,437

    Heres what I have so far void p(){...

    Heres what I have so far



    void p(){
    printf("Called.\n");
    }

    void *start;
    void *end;
  13. Replies
    15
    Views
    4,437

    self modifying code

    So, I have an application which is VERY processor intensive. This application has a core which is general enough to work for all intended purposes. However, becuase of this generality, in certain...
  14. Replies
    18
    Views
    14,598

    How would I then unwind the stack to get my...

    How would I then unwind the stack to get my trace?

    Thanks!
    chacham15
  15. Replies
    18
    Views
    14,598

    The stack is layed out in the following manner: ...

    The stack is layed out in the following manner:

    Base Pointer
    Return Address
    Stack Variables

    So, yes. The interesting thing to note is that when I try to run the getStackTrace function from...
  16. Replies
    18
    Views
    14,598

    How would you implement getting a stack trace...

    How would you implement getting a stack trace from inside the signal handler? I've tried getting the base pointer then adding sizeof(void*) to get the return address and repeating but all I get are...
  17. Replies
    18
    Views
    14,598

    I mostly do it for the experience. I feel that if...

    I mostly do it for the experience. I feel that if you know how the tools you use work then you'll be able to use them better. Also, architecting complicated systems is fun.
  18. Replies
    18
    Views
    14,598

    >So you want some kind of 'throw' from C code,...

    >So you want some kind of 'throw' from C code, which will become a C++ exception later on?

    As a future goal, yes. But for now, i want it for some more mundane things:

    For example,



    BOOL...
  19. Replies
    29
    Views
    3,435

    >And it would be a compiler error, too. That's...

    >And it would be a compiler error, too. That's why setjmp was invented. (Please don't use it. It's worse than goto.)

    haha, cool. I dont think his compiler errored, perhaps he did the goto in...
  20. Replies
    29
    Views
    3,435

    > It's not a pointer when you use it with sizeof...

    > It's not a pointer when you use it with sizeof - it's more than semantics!

    sizeof isnt a real function!!!

    > It's a unique operator in that it uses a sequence of characters (sizeof) rather...
  21. Replies
    29
    Views
    3,435

    Yes, in the first example if you wanted you'd do...

    Yes, in the first example if you wanted you'd do an explicit cast. This, however, isnt necessary as the compiler will guess at what you mean. This fits in with the entire theme, rules are meant to be...
  22. Replies
    29
    Views
    3,435

    >You can CERTAINLY create a 2D, 3D or 4D array: ...

    >You can CERTAINLY create a 2D, 3D or 4D array:

    Its only in your mind that that array can exist in more than one dimension, the compiler translates any higher dimensions into a single dimensions...
  23. Replies
    29
    Views
    3,435

    Bzzt - wrong, no it isn't. Wow. Just wow. What...

    Bzzt - wrong, no it isn't.

    Wow. Just wow. What you are missing is that sizeof is a preprocessor directive. That means that in the function all the preprocessor knows is that the argument is a int*...
  24. Replies
    20
    Views
    3,373

    What the heck? Where did my post go? Anyways,...

    What the heck? Where did my post go? Anyways, since the macro makes use of variables which are defined locally in the used function it will work as expected. The reason is that a macro is a search...
  25. Replies
    18
    Views
    14,598

    The thing is that if I wanted to use a library,...

    The thing is that if I wanted to use a library, I'd be writing in C++ which is more suited for doing this kind of thing. I want to write my own version of this (as I have for printing out stack...
Results 1 to 25 of 30
Page 1 of 2 1 2