CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: AKRichard

Page 1 of 6 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    2,291

    Re: optimizing an algorithm or two

    I dont use any floating point variables or intermediates anywhere.
    I donr use any ASSERT statements.
    Multithreading is allways a possible issue, and a big pain to track down.
    Memory overwrites can...
  2. Replies
    13
    Views
    2,291

    Re: optimizing an algorithm or two

    Anywhere my code expects the memory I explicitly zero it out, the places I do not initialize the memory are the places where it is just to hold the results of a calculation (and the calculation does...
  3. Replies
    13
    Views
    2,291

    Re: optimizing an algorithm or two

    Why? I thought running the debug code outside of the debugger was pretty much the same as running the release code. Anyways I just added some code to the ENTER/EXIT macros to take a clock reading,...
  4. Replies
    13
    Views
    2,291

    Re: optimizing an algorithm or two

    BCD? binary coded decimal? I implemented a BigDecimal using the BigInt with a decimal place variable attached. For addition and subtraction there is some prep code that has to run (in order to line...
  5. Replies
    13
    Views
    2,291

    Re: optimizing an algorithm or two

    I want to say they are using a byte array to represent a twos complement number. I tried having my arrays represent a twos complement number, but, at the time, the code looked cleaner using the...
  6. Replies
    13
    Views
    2,291

    Re: optimizing an algorithm or two

    ya thats why my comparison program uses three different sets of numbers, 1 set contains arrays with between 1 and 10 elements, the second set contains arrays with between 25 and 50 elements, and the...
  7. Replies
    13
    Views
    2,291

    optimizing an algorithm or two

    Hello all,

    Same project as Ive been posting about. After the replies I got from my last post, Ive been spending some time redoing parts of my library. When I got to the assembly code and read...
  8. Re: You never get bored or tired of programming stuff?

    Im just a dumb a$$ carpenter. I dont touch a computer all day, but at the end of the day when I am trying to wind down, Ill turn on the computer and work on one of my projects. For me, it is...
  9. is it possible to use a different file for the source in the debugger?

    Visual studio 2012

    I have a project that has a few .asm files (assembly language code), I have the compiler/assembler set to create a list file for the assembly code and would like the debugger...
  10. Replies
    6
    Views
    55,446

    Re: My Big Number library

    Thank you, This project has evolved greatly over the years. Started out as a vb dll to expand on javas BigInteger, then came a BigDecimal and BigFraction (which didnt turn out as well as Id hoped),...
  11. Replies
    6
    Views
    55,446

    Re: My Big Number library

    sorry took so long to reply still working to get set up here again.



    I have mixed feelings about the memory management routine. It appears to make the algs run faster, almost every single...
  12. Replies
    6
    Views
    55,446

    Re: My Big Number library

    ok for the files to generate the documentation.

    the doxygen link:
    http://www.stack.nl/~dimitri/doxygen/download.html

    there is a doxyfile which is to be used also but it is too long to fit in...
  13. Replies
    6
    Views
    55,446

    My Big Number library

    Hello all,

    Ive been away for a few months now but finally moved back to Alaska yay. I am picking up my pet project again and would like to put it out there for anyone who wishes to take a look...
  14. Replies
    5
    Views
    11,839

    Re: Class fraction - overloading operators

    Noone here will "do" your homework for you. With that in mind Ive written the library you are talking about, it took about a few weeks to get most of what youre asking for up and running but I also...
  15. Re: [RESOLVED] Question about volatile registers

    Just learned that the hard way lol.
  16. Re: [RESOLVED] Question about volatile registers

    http://msdn.microsoft.com/en-us/library/ms235286.aspx

    Youll find most everything in the above article, Ive reread those pages a hundred times it seems. If you dont completely get a part of it you...
  17. Re: Question about volatile registers

    So, in the middle of typing that last reply, when I got done typing that last bit about how it doent throw an exception till it requests more memory when I remembered something OReubens said:


    ...
  18. Re: Question about volatile registers

    Funny you should mention that post, I just reread it the other day. As this project has evolved every once in a while Ill see a way to reduce its complexity, code an idea or two and test it out, if...
  19. Re: Question about volatile registers

    http://msdn.microsoft.com/en-us/library/9z1stfyw.aspx

    I keep coming back to this article describing register usage and looking at r10/r11


    r10 and r11 are the only (integer) registers marked...
  20. Re: Question about volatile registers

    sorry took 3 posts to get everything in:


    Now there is a bit of extra code in there trying to debug this problem, hopefully its commented enough to understand a few things though:

    1....
  21. Re: Question about volatile registers

    And the following would be equivalent to function2:



    GetMem64 PROC _tsize:qword, _ch:qword, _nr:qword

    ;using a management table
    ;each table is specific to a memory set
    ;each entry...
  22. Re: Question about volatile registers

    Ok, I have to break this post in two parts (it said Im almost double what it allows to post).

    thats not the exact code, but illustrates the idea, the exact code where the exception pops up...
  23. Re: Question about volatile registers

    I dont remember what the mp was, it had the mp and a little bit of memory all on one chip, but it was part of a kit that had a piece of bread board, 2 of the 8 segment leds, a couple of slide...
  24. Re: Question about volatile registers

    I am not sure where its going wrong, all I can say so far is that r11 is correct before the call to function2, and that every once in a great while it gets corrupted between the function call and its...
  25. Re: Question about volatile registers

    One more thing, it appears to happen in multi-threaded mode but not when run in single threaded mode (only about 95% sure of this at the moment though). Im still running it in different modes to see...
Results 1 to 25 of 142
Page 1 of 6 1 2 3 4





Click Here to Expand Forum to Full Width

Featured