Search:

Type: Posts; User: awsdert

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    59
    Views
    1,400

    Well I tried adding the profiling as a...

    Well I tried adding the profiling as a target/goal, as you might have guessed I didn't succeed:


    make profile run
    MAKECMDGOALS=profile run
    make -j 1 --no-print-directory -f main.mak profile run...
  2. Replies
    59
    Views
    1,400

    Thanks :) While I'm implementing that into my...

    Thanks :) While I'm implementing that into my makefile targets/goals do you mind having a look at this function, I seem to have made a mistake while trying to implement faster code for it:


    int_t...
  3. Replies
    59
    Views
    1,400

    The reason I fiddle with bit members is because...

    The reason I fiddle with bit members is because the function may be handed a number where it should not be doing every segment and/or bit, like in the example of alu_reg_sub() which is used by...
  4. Debug mode ALWAYS initializes uninitialized...

    Debug mode ALWAYS initializes uninitialized variables to 0, meaning you clearly have an uninitialized variable or variables somewhere, go look for that

    Edit: Those kind of errors are normally...
  5. Replies
    59
    Views
    1,400

    The point of the test is to check branching speed...

    The point of the test is to check branching speed against copying object data so doing so would render the test invalid, as for it being a precondition I'm considering adding a macro for pointer...
  6. Replies
    59
    Views
    1,400

    Having adjusted my test to not print the values...

    Having adjusted my test to not print the values and just use them yielded similar results but with smaller amount of values, since the function you mentioned uses a total of 10 values I opted to base...
  7. Well segmentation faults are typically the result...

    Well segmentation faults are typically the result of NULL pointer but more generally because an attempt to read/write memory that doesn't have the appropriate permissions, in the case of arrays...
  8. It's too big for any single function to hold, to...

    It's too big for any single function to hold, to make them local you need to make use of calloc() & free(), I believe you're capable of doing your own research now that you know the direction to look
  9. Replies
    59
    Views
    1,400

    That's an invalid test because you're using the...

    That's an invalid test because you're using the same object via different means, with one it is just self + pos while the other is (p + off) + pos, also obj.self should've been checked via a branch,...
  10. Replies
    59
    Views
    1,400

    I managed to fix it, took me long enough to...

    I managed to fix it, took me long enough to notice that I forgot about decrementing r in the scenario that count had been 0'd out, adding this line before restoring count fixed things:


    r =...
  11. Replies
    59
    Views
    1,400

    The change is now incorporated so no more needing...

    The change is now incorporated so no more needing to edit main.mak each time you update, Hodor since you were having the same issue could you give the update a try to see if this fix resolves it for...
  12. Replies
    59
    Views
    1,400

    In the output I gave, this: test.c:122:...

    In the output I gave, this:


    test.c:122: reg_compare() 1: num.node = 8, val.node = 9
    test.c:126: reg_compare() 2: num.node = 8, val.node = 9
    test.c:130: reg_compare() 3: num.node = 8, val.node...
  13. Replies
    59
    Views
    1,400

    Well the 1st 2 structures (alu_src_t & alu_dst_t)...

    Well the 1st 2 structures (alu_src_t & alu_dst_t) hold pointers to the object that should be read from or written to and the various functions needed for interacting with them (along with a position...
  14. Replies
    59
    Views
    1,400

    Thought I fixed this damn bug, getting corrupted...

    Thought I fixed this damn bug, getting corrupted node values again:


    make run
    MAKECMDGOALS=run
    make -j 1 --no-print-directory -f main.mak run
    PRJ_SRC_FILES = 'test.c alu_bit.c alu_int.c...
  15. Replies
    59
    Views
    1,400

    AH! So that was it, I didn't even notice I left...

    AH! So that was it, I didn't even notice I left that relic there



    Yeah I used that to avoid branching, bignum math is naturally slower than hardware so I use tricks like that to avoid branching...
  16. Replies
    59
    Views
    1,400

    Knowing allows it to determine when it should...

    Knowing allows it to determine when it should actually fail, for example the bytes wanted could have been corrupted and given a smaller than desired size, in such a case it just pretends it...
  17. Replies
    59
    Views
    1,400

    I actually forgot that flag existed, considering...

    I actually forgot that flag existed, considering the type of project it is there's no real reason for me to not add it in and leave it there permanently, already helping me identify a bunch of bugs...
  18. Replies
    59
    Views
    1,400

    As it turns out the stack smashing appears to...

    As it turns out the stack smashing appears to actually be in main(), tried moving the call to later on and tried seeing what other group tests did, it still reported stack smashing, from what little...
  19. Replies
    59
    Views
    1,400

    Managed to fix the issue with register...

    Managed to fix the issue with register acquisition but now encountering a stack smashing fault, I don't know how to look for the cause of that so I would appreciate suggestions, the only info I...
  20. Replies
    59
    Views
    1,400

    I add ...

    I add
    .LIBPATTERNS:=$(DST_LIB_PFX)%.$(DST_LIB_SFX) $(DST_LIB_PFX)%.a to the dst_sys.mak header so that should reduce linkage errors
  21. Replies
    59
    Views
    1,400

    AH! Just a thought, try removing the 'lib' part...

    AH! Just a thought, try removing the 'lib' part from the library name, maybe your system doesn't prepend that when searching
  22. Replies
    59
    Views
    1,400

    Strange, I honestly suck at makefiles (despite...

    Strange, I honestly suck at makefiles (despite using them in every project) so I don't know what to do about that, as far as I can see gcc should find it without issue as the directory itself is...
  23. Replies
    59
    Views
    1,400

    That's weird, the 1st 2 are defined right at the...

    That's weird, the 1st 2 are defined right at the top of their relative files (alu_uint.c & alu_int.c), the 3rd is in alu_main.c right under alu_get_reg()... AH! Check if libalu_d.so still exists in...
  24. Replies
    59
    Views
    1,400

    You probably have old objects there, add rebuild...

    You probably have old objects there, add rebuild to the target list then do normally, I haven't figured out why make is not rebuilding objects as it ought to, feel free to investigate that later, not...
  25. Replies
    59
    Views
    1,400

    Try as I might I can't discern why my code is...

    Try as I might I can't discern why my code is failing, all I can find is that register numbers just randomly stop at 20:


    make run
    MAKECMDGOALS=run
    make --no-print-directory -f main.mak run...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4