Search:

Type: Posts; User: xb12x2; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: g++ includes larg zero block in small program

    The compiler's job is to turn human readable/writable code into machine language. It's the linker's job to format the machine language file(s) into a loadable executable.

    You can compile a source...
  2. Replies
    5
    Views
    1,747

    Re: Opening "/dev/ttyUSB0" hangs C++ program

    -
    It looks like the pl2303 driver module is the correct one for your Y.C. Cable (ID 05ad:0fba). The header file for the pl2303 module shows support for it:

    /* Y.C. Cable U.S.A., Inc - USB to...
  3. Re: g++ includes larg zero block in small program

    I suspect the culprit is the linker, etc, not the compiler.
  4. Replies
    5
    Views
    1,747

    Re: Opening "/dev/ttyUSB0" hangs C++ program

    I suspect you do not need to do this:

    modprobe -r pl2303
    modprobe pl2303

    The modprobe command loads a driver, in this specific case the pl2303 driver. You should not need to do this if, as you...
  5. Replies
    7
    Views
    807

    Re: Need help with pointers and arrays

    The reason for the segmentation fault is that strcpy() copies strings, and strings include the terminating null character.



    strcpy

    char * strcpy ( char * destination, const char * source );...
  6. [SOLVED] Re: How to calculate cache line size in CPU cache just using the total cache size and

    First let me say that I'm not an expert in processor design.

    For common commercial processors I don't think the cacheline size can be calculated based on the information you have.

    As I...
  7. [SOLVED] Re: C++ - Number of columns in a text file, strange output

    while (ss >> temp)
    {
    // ss >> temp;
    ncols++;
    cout << temp << " ";
    }
  8. Replies
    3
    Views
    471

    Re: Sound through computer speakers

    You might not need to edit blacklist.conf. You could just dynamically insert the driver:

    sudo insmod /lib/modules/`uname -r`/kernel/drivers/input/misc/pcspkr.ko

    Check that the driver is...
  9. Replies
    2
    Views
    1,095

    Re: GDB- breakpoint in shared library.

    I think the following two links will do a good job explaining what is happening.

    http://stackoverflow.com/questions/13978692/strcpy-sse2-unaligned-s-not-found
    ...
  10. Replies
    6
    Views
    1,719

    [SOLVED] Re: Custom usb device xhci_hcd problem

    For what it's worth:

    device descriptor read/8, error -75

    From /usr/include/asm-generic/errno.h

    #define EOVERFLOW 75 /* Value too large for defined data type */
  11. Re: Arbitrary inaccuracy seen in time measurement [gettimeofday() and clock_gettime()

    That is why I suggested that you do the actual clock-counting from a kernel-mode driver which can be made to run at a priviledge-level which will not get preempted during the count. Similar to an...
  12. Re: Arbitrary inaccuracy seen in time measurement [gettimeofday() and clock_gettime()

    Your application is running on a modern, multitasking (time-slicing) protected OS: the millisecond range of accuracy is about the best you can expect with the type of solution you are using.

    Two...
  13. Replies
    2
    Views
    515

    Re: Embedded programming newbie problem..

    I assume you're trying to run this code on a modern, x86-based (or x64-based) O.S. such as Linux or Windows or iOS etc. If so, what you're seeing is the O.S. purposely preventing your code from...
  14. Replies
    11
    Views
    812

    Re: Python and Go and the Binary

    I've read some real experts' opinions on developing a compiled version of Python (compiler writers, language researchers, etc). Most agree that not all the features that make Python so popular could...
  15. Replies
    6
    Views
    771

    [SOLVED] Re: Planning stage of Software Development

    The software design specification document is about the design of it, whether you have customers or not. I'm suggesting that you create one as a way to begin thinking about the design, even though...
  16. Replies
    6
    Views
    771

    [SOLVED] Re: Planning stage of Software Development

    The design of your program is what the design spec is for. It's so you write it down and think about it in detail until you're ready to code it without having to design it while you're coding it.

    ...
  17. Replies
    6
    Views
    771

    [SOLVED] Re: Planning stage of Software Development

    I am a professional developer, an independent contractor.

    The planning stage is the most important phase. This is where the customer and the developer create the documentation that describes...
  18. Replies
    26
    Views
    2,738

    Re: Selecting a programming language

    Go is owned by Google and so was designed to target Google's very specific requirements, not to address a generalized set of programming needs. Google must support very large and distributed systems...
  19. Re: Where does HardInfo get the System BIOS address range from?

    Well, one great thing about open-source software is that if you need to know what HardInfo is actually doing, you could easily download its sources and take a look. Or rebuild it with debug info so...
  20. Re: Where does HardInfo get the System BIOS address range from?

    You might be confusing the following:

    1) The physical, static size of the system (motherboard) ROM.

    2) The size of the system image within the ROM. There might be other images in the ROM such...
  21. Re: which /usr/src/linux-headers.../arch/

    try running

    $ gcc -v -E -

    On my computer the last few lines of the output are:

    #include <...> search starts here:
    /usr/lib/gcc/x86_64-linux-gnu/4.8/include
    /usr/local/include
    ...
  22. Re: Looking for Python tutorial that has a GUI connecting to a database

    First, thanks for providing the links.

    What were your reasons for changing the GUI from GTK to qt with QT4 designer?
  23. Replies
    12
    Views
    2,697

    Re: Help with Asm in C code (GCC)

    Sorry I took so long to get back here. My family went out for a few hours.

    This bulds and runs on my Linux x86_64 box. If you need a 32 bit version let me know.


    This simple example shows:
    ...
  24. Replies
    12
    Views
    2,697

    Re: Help with Asm in C code (GCC)

    This is what I was afraid of. This is AT&T syntax. The GNU Assembler, known as gas or as, has built-in higher-level pseudo ops, or macros, so to speak. And this just adds to the overall dificulties...
  25. Replies
    12
    Views
    2,697

    Re: Help with Asm in C code (GCC)

    I screwed-up my previous attemtp to post some code. Let me try again:

    This is AT&T syntax that does cpuid, and following it is some code that calls it.
    This code worked at the time I wrote it...
Results 1 to 25 of 44
Page 1 of 2 1 2