• Joined on 2025-01-27
Karutoh pushed to main at Karutoh/Compiler 2024-02-14 18:06:01 -08:00
91f9086ef4 Organized and documented the code more.
Karutoh pushed to main at Karutoh/Compiler 2024-02-14 15:59:48 -08:00
2cafa2a2ce Removed Vulkan dependency.
Karutoh suggested changes for Karutoh/CustomHeapManager#4 2024-02-14 15:44:23 -08:00
gbowne1 version of implementation with more implementations done

This is not an error. The changes of struct block* b = (struct block*)ptr - 1; to struct block *b = (struct block *)((char *)ptr - BLOCK_SIZE); adds more text to parse for the compiler and just looks ugly. Both do the same thing.

Karutoh commented on pull request Karutoh/CustomHeapManager#4 2024-02-14 15:39:19 -08:00
gbowne1 version of implementation with more implementations done

In my_custom_free there's an error on line number 232 for the statement if (b == last). The last global variable was not updated prior to that statement, which in turn the statement will…

Karutoh commented on pull request Karutoh/CustomHeapManager#4 2024-02-14 15:25:36 -08:00
gbowne1 version of implementation with more implementations done

In the find_best_fit function on line number 111. There's a null pointer error. In the statement `if (!best_fit

Karutoh commented on pull request Karutoh/CustomHeapManager#4 2024-02-14 15:19:38 -08:00
gbowne1 version of implementation with more implementations done

There's an additional ALIGN16 macro function call in fragment_block function which is unnecessary.

Karutoh commented on pull request Karutoh/CustomHeapManager#4 2024-02-14 15:10:50 -08:00
gbowne1 version of implementation with more implementations done

I noticed on line #34 there's an issue. You've done s += BLOCK_SIZE;. This not ideal and should only hold the size of data the memory block contains, not including the memory block header.…

Karutoh commented on pull request Karutoh/CustomHeapManager#4 2024-02-14 15:05:45 -08:00
gbowne1 version of implementation with more implementations done

Seems a alignment of 16 bytes is indeed required of x64 architectures.

Karutoh commented on pull request Karutoh/CustomHeapManager#4 2024-02-14 15:00:32 -08:00
gbowne1 version of implementation with more implementations done

Ideally our target should be for both x86 and x64. Just for your operating system and embedded hardware.

Karutoh created branch main in Karutoh/Compiler 2024-02-14 06:50:56 -08:00
Karutoh pushed to main at Karutoh/Compiler 2024-02-14 06:50:56 -08:00
20dcef2751 Created a working ELF binary!
cf9bface93 Created a working ELF binary!
Karutoh created repository Karutoh/Compiler 2024-02-14 06:50:25 -08:00
Karutoh pushed to main at Karutoh/CustomHeapManager 2024-02-11 00:25:47 -08:00
af512c99b6 Removed sbrk and brk and only used the brk system call.
Karutoh pushed to main at Karutoh/CustomHeapManager 2024-02-08 18:51:49 -08:00
7ebc328b5a fixed get_heap_size function by adding null pointer checks.
Karutoh pushed to main at Karutoh/CustomHeapManager 2024-02-08 18:51:04 -08:00
0e2633db9d Added get_heap_size function.
Karutoh deleted branch implementation from Karutoh/CustomHeapManager 2024-02-08 17:51:55 -08:00
Karutoh pushed to main at Karutoh/CustomHeapManager 2024-02-08 17:51:16 -08:00
9594b76202 Added ralloc function.
103277bf63 Added ralloc function.
c0da3fdefe Added ralloc function.
Compare 3 commits »
Karutoh pushed to implementation at Karutoh/CustomHeapManager 2024-02-08 17:47:49 -08:00
103277bf63 Added ralloc function.
Karutoh pushed to implementation at Karutoh/CustomHeapManager 2024-02-08 17:42:08 -08:00
c0da3fdefe Added ralloc function.
Karutoh pushed to main at Karutoh/CustomHeapManager 2024-02-08 17:41:15 -08:00
85b32bbc2e Merge pull request 'gbowne1implfix' (#1) from gbowne1implfix into main
8b520b4bed updated malloc and extended heap
0b25fa434f Added memory block fragmenting.
14d4e0ee67 Fixed forward defragmenting, added reverse defragmenting, and added a line break on second printf.
3b38eddf5d Optimized code by adding last block global variable.
Compare 11 commits »