User Profile

Collapse

Profile Sidebar

Collapse
pedz
pedz
Last Activity: Dec 12 '06, 04:36 AM
Joined: Oct 19 '06
Location: Austin, TX
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pedz
    replied to conversion of date to roman numerals
    in C
    I did a google search and this is the top hit. I saw this as an example in a book but I can't remember which book it was. Sorry. But, hopefully, this example will get you started.

    Roman Numeral Conversion
    See more | Go to post

    Leave a comment:


  • pedz
    replied to 64bit porting
    in C
    Is this with IBM's xlC or is it with gcc?

    I have not seen that error. My guess is that you are passing an object not by reference or something similar to that (returning an object not by reference).
    See more | Go to post

    Leave a comment:


  • pedz
    replied to Structs in C
    in C
    Someone please check my syntax but something like:

    Code:
    template <int size>
    struct _STRUCT1
    {
        integer var1[size];
    };
    Now you can do a couple of things. One is:
    Code:
    typedef _STRUCT1<100> s100;
    typedef _STRUCT1<200> s200;
    
    struct foo {
        s100 s1;
        s200 s2;
    };
    or you can put the use of the template inside the struct like:...
    See more | Go to post

    Leave a comment:


  • pedz
    started a topic Help needed with bus access classes
    in C

    Help needed with bus access classes

    I am trying to write a set of classes, probably template classes, to allow "pretty" and safe access to low level machine words.

    The syntax I would like to end up with is something like:
    Code:
    foo = handle.vendor_id.get();
    where handle would represent, in this case, the PCI config space, vendor_id is a particular offset into that space, and get is a method to retrieve the current value.

    To add complexity,...
    See more | Go to post
No activity results to display
Show More
Working...