Search:

Type: Posts; User: 11jmb; Keyword(s):

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    4,470

    Re: Where to go after python? (Wannabe hacker)

    +1. To me, being a hacker boils down to delight in solving hard problems. Any interest in security is purely coincidental.



    +2 :)

    Even being a hobbyist can take you into many different...
  2. Replies
    4
    Views
    1,201

    Re: c++ multithreading design question

    I was thinking that by "message" OP meant that there was some kind of raw data or text that needed to be parsed in order to ID which event to execute. your program exhibits great modular design, but...
  3. Replies
    4
    Views
    1,201

    Re: c++ multithreading design question

    I'm not sure I follow entirely, so please confirm that I have this correct: you have a queue of messages, and you want your subroutines to process these message as they arrive. When you say you want...
  4. Replies
    25
    Views
    1,515

    Re: C++ program crashes

    As has been pointed out before, OP's superficial mistake was declaring a large sequential array on the stack, but I can't think of a solution where using 30e6 element array is useful. Of course a...
  5. Thread: C++ pointers

    by 11jmb
    Replies
    7
    Views
    528

    Re: C++ pointers

    The preferred way to do something like that in C++ is by reference.



    This is incorrect. Could you perhaps be confused about trying to return a string literal instead of a dynamically allocated...
  6. Replies
    25
    Views
    1,515

    Re: C++ program crashes

    Obviously the answer is to use integers because fixed-point arithmetic is usually faster than floating-point. Beginners should always remember to optimize first, and think later :P

    On a more...
  7. Replies
    4
    Views
    883

    Re: Unable to do even basic Clang tutorial

    It's really hard to tell what the problem is with so little information. perhaps you could share how you attempted the build or relevant lines from the source files in question?
  8. Replies
    6
    Views
    883

    Re: help with int to unsigned char

    as another option:


    unsigned char encode[10] = {0b1100, ... }; // binary


    These all mean the same thing once compiled, they are just represented differently in the source code.
  9. Re: Please recommend some read materials about Compilation

    Close, but not entirely. When you run gcc, the steps that are actually run are: preprocessor, compiler, assembler, archiver (sometimes), and linker.

    The preprocessor handles directives like...
  10. Replies
    1
    Views
    341

    Re: OpenMPI Throwing Nonreproducible Errors

    without looking at any code, I'd guess that your problem comes from not using the non-blocking receive safely. If that is the case, your options are either to switch from MPI_Irecv to MPI_Recv, which...
  11. Re: Please recommend some read materials about Compilation

    Can you share specifics like error messages? Is the project you are trying to compile open-source? If so, what is its name/version?



    http://en.wikipedia.org/wiki/Toolchain
  12. Thread: C

    by 11jmb
    Replies
    14
    Views
    892

    Re: C

    As a C apologist, I welcome people who want to learn the language, but I'm often wary of their intent. Make sure that you want to learn C because of your technical interests, not because "they" told...
  13. Replies
    50
    Views
    2,560

    Re: Modular programming

    you can map between any programming language and machine code, otherwise it wouldn't run. This sounds especially wrong coming from somebody who is essentially arguing that all languages are equal...
  14. Replies
    4
    Views
    337

    Re: Trying to find the total time of a program

    This looks like a job for some callgraph profiling. Try the valgrind tool callgrind

    Out of general curiosity, why so many subprocesses? Are they all waiting for I/O at some point, or are you...
  15. Replies
    1
    Views
    1,175

    Re: libvirt with c/c++ error

    How did you install this? I'm not as familiar with Fedora as I am with Ubuntu, but in Ubuntu there is often a standard version and a -dev version which contains the headers.

    My guess is that you...
  16. Re: Can you recommand a good tool to read source code?

    Generating a call graph with doxygen or a profiling tool is useful for getting to know the code, but for doxygen to really serve its purpose in generating documentation pages, your code needs to be...
  17. Replies
    14
    Views
    1,247

    Re: Need help with at&t assembly language

    "having to write in large amounts," no. "having to deal with," possibly.

    Anybody who will study computer architectures will probably use some assembly language as a means of expressing concepts,...
  18. Replies
    5
    Views
    386

    Re: Setbits function question

    ~ is the bitwise complement: ~00110101 = 11001010
    << is a left bitwise shift: 00001110<<2 = 00111000
    & is a bitwise AND: 11111010 & 11001100 = 11001000
    | is a bitwise OR: 11111010 | 11001100 =...
  19. Replies
    6
    Views
    10,901

    Re: Tutorial for GNU/Linux C++

    There is very little that is special about Linux for when you start out. You will want to make sure you have g++ installed.

    Then to compile and run the programs in the tutorial you just navigate...
  20. Replies
    26
    Views
    2,150

    Re: Discussing C and C++

    The big differences between the two languages boil down to high-level constructs that are intended to save developers' time at the cost of performance. As previous posts have pointed out, there are...
  21. Replies
    26
    Views
    2,150

    Re: Discussing C and C++

    That's a good point. I should have explained myself better. I did not mean to suggest that the two languages are the same. My point was that when people begin to use C++ to match the runtime...
  22. Replies
    14
    Views
    1,247

    Re: Need help with at&t assembly language

    OK, well I still recommend translating this into C, which is not terribly difficult. It often helps to describe what you want to do in English (or whatever your native language may be) before trying...
  23. Replies
    26
    Views
    2,150

    Re: Discussing C and C++

    So I dislike C++ because I'm unintelligent and/or lazy? What about Brain**** or Malbolge? Are those languages only as good as their users?




    C++ was designed to be a superset of C, you you can...
  24. Replies
    14
    Views
    1,247

    Re: Need help with at&t assembly language

    /tmp/cc8U99w3.s is the intermediate assembly file generated by your compiler, not something that you are meant to include in your source. As for the errors, I think you will need to follow your block...
  25. Replies
    14
    Views
    1,247

    Re: Need help with at&t assembly language

    http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html

    Not to send you on a wild goose chase, but it looks like you're new to assembly programming, so give this a quick read and see if...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4