Search:

Type: Posts; User: john_12

Search: Search took 0.00 seconds; generated 32 minute(s) ago.

  1. Replies
    4
    Views
    1,960

    oh wow ouch... thank you!

    oh wow ouch... thank you!
  2. Replies
    4
    Views
    1,960

    thanks for your reply. This I understood but I...

    thanks for your reply. This I understood but I mean the "int_bottom" routine as I wrote. Nowhere in the code do I see a jump to "int_bottom". I know that a hardware interrupt writes the interrupt...
  3. Replies
    4
    Views
    1,960

    how and where is int_bottom invoked?

    Hello,

    I am following along a tutorial on operating systems and do not understand where in the code the "int_bottom" routine is invoked (it is written in interrupstubs.s).
    Can someone tell me...
  4. Replies
    4
    Views
    3,644

    problem solved I did not include "memory.o"......

    problem solved I did not include "memory.o"......
  5. Replies
    4
    Views
    3,644

    thanks! I have written a file with tests,...

    thanks! I have written a file with tests, "test_segment.c/h" and updated I have updated the Makefile. Every target " *.o" gets all its included headers as additional dependencies but my problem...
  6. Replies
    4
    Views
    3,644

    please ignore this, I refactored my code.

    please ignore this, I refactored my code.
  7. Replies
    4
    Views
    3,644

    confusion on linking files

    Hello,

    The following code just implements a dynamic array that is grown to double in size once its full. I do not understand why the reference cannot be resolved by the linker:

    I have a file...
  8. hey thank you so much for taking the time to...

    hey thank you so much for taking the time to write this!! :) I understood it a lot better.
  9. I have deleted the subdirectory "test" and moved...

    I have deleted the subdirectory "test" and moved everything into "src".
    test_segment.h looks like this:

    #include <stdlib.h>
    #include <stdio.h>
    #include <assert.h>


    void test_init_segment();
  10. confusion on structuring a project with test files

    Hello,

    I follow along a tutorial on interpreters and have a directory structure like this:
    Interpreter
    --src
    ----segment.h
    ----segment.c
    ----main.c
    ----Makefile
    --test
  11. Replies
    8
    Views
    3,750

    I fixed everything and printing works now. do you...

    I fixed everything and printing works now. do you have any idea why segault came?


    #include <stdio.h>
    #include <stdlib.h>


    #define on 1
    #define off 0
  12. Replies
    8
    Views
    3,750

    thanks for your reply. The left and right_edge...

    thanks for your reply. The left and right_edge fields are for the tests I want to do, they do not have anything to do with a normal tree structure. Will I still need to fix the warnings?
  13. Replies
    8
    Views
    3,750

    building a complete binary tree

    Hello,

    I want to run a few tests on a full binary tree so I built one. It is supposed to have 3 levels, 8 leaf nodes a-h at last. My print_tree() method causes a segmentation fault. It is not...
  14. Replies
    5
    Views
    3,966

    changed what you told me

    So now I have corrected my mistakes. For some reason I get a segfault when trying to print the contents of the lookup table. Can anyone tell me why?



    #include <stdio.h>
    #include <stdlib.h>
    ...
  15. Replies
    5
    Views
    3,966

    a new attempt

    Hello,

    I now simply set the hash value to the same as the data value and can change that later. The array does not contain duplicates.
    When I run the debugger, I get this:

    Breakpoint 1,...
  16. Replies
    5
    Views
    3,966

    implementing a hashmap

    Hello,

    I want to implement a hashmap and get a segfault again when testing my program. It seems that I cannot access
    test->hash as it throws the segmentation fault error. I suspect that I should...
  17. thanks, I did not see this and some other bugs. I...

    thanks, I did not see this and some other bugs. I have it working with the test array now:



    #include <stdio.h>




    void swap(int arr[], int i, int j){
  18. I implemented quuicksort for practice and have a subtle bug

    Hello,

    I have run my program with GDB and when I enter
    my_quicksort(array) in
    main() I have high set to -7575 consistently and low set to 0. I do not understand how this can happen, I have run...
  19. I built a linked list of student-entry structs but get a segfault when printing

    Hello,
    My problem was solved but I did not find out how to delete a post entirely.
  20. thanks for your answer!

    first off - like I asked in my previous post - is there a way to reply without quoting?

    I have rewritten the problem so that I concatenate two arbitrary strings that may be immutable so I think it...
  21. thanks to both of you!

    Thanks I also found out that I initialized immutable strings so overwriting would always cause a segmentation fault. I did not know about the need to always allocate memory for a variable if it...
  22. I want to concatenate two strings by using pointers but get a segfault

    Hello,

    I ultimately want to concatenate two strings using pointers. For some reason I get a segmentation fault as I try to "debug". Can someone tell my why I get this segfault? Thanks!!


    ...
  23. confusion on the difference between external and static

    Hello,

    I know that external variables are seen by every function in every file of the program and static variables (do they have to be declared in a function body or can they be declared outside?)...
Results 1 to 23 of 23