oh wow ouch... thank you!
Type: Posts; User: john_12
oh wow ouch... thank you!
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...
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...
problem solved I did not include "memory.o"......
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...
please ignore this, I refactored my code.
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...
hey thank you so much for taking the time to write this!! :) I understood it a lot better.
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();
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
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
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?
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...
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>
...
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,...
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...
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){
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...
Hello,
My problem was solved but I did not find out how to delete a post entirely.
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...
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...
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!!
...
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?)...