Ok so for the program I'm working on, I have a section where I have 8 bytes put aside as a sort of accumulator. Throughout various points in the program I intend to use these as both a double float and a long int. At other points I intend to only use the first 4 bytes as a single int or float, and completely ignore the rest.
Similarly I also have a large array of integers where I will at some points want to read out individual 4 byte blocks, as either an integer or float. Or seamlessly smush 2 together as an 8 byte long or double.
I'm working in an environment where although my operations are incredibly simple, time and memory are incredibly scarce so I can't use up extra assignment operations copying into a separate stack variable. I'm currently working in c but am near enough into the project I can easily start over in a new language if this isn't the best for it. How might I go about doing this. If I have a double variable, or an array of integers, how can I arbitrarily read variables as other data types without doing any conversion, any computational overhead, even when the type sizes don't match. Thankyou