Tweak memory/array visualizer.

Make number of bytes default to 256. Can be changed if needed.
Change to 'Variable expression'.
Show results immediately.
This commit is contained in:
Ernie Pasveer
2022-05-15 13:32:00 -05:00
parent 2138f7634c
commit 2bd3280de8
5 changed files with 56 additions and 20 deletions
+16
View File
@@ -4,6 +4,17 @@
#include <math.h>
#include <iostream>
float* function1() {
float* float_array = (float*)malloc(256);
for (int i=0; i<64; i++) {
float_array[i] = (float)i * 1.13;
}
return float_array;
}
int main (void) {
//
@@ -50,6 +61,10 @@ int main (void) {
currentPhase += phaseIncrement;
}
//
//
//
float* x = function1();
//
//
@@ -60,6 +75,7 @@ int main (void) {
free(int_array);
free(float_array);
free(sine_array);
free(x);
return 0;
}