This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何改变内存分配时字节对齐的方式。



哪位大侠,知道如何修改ccs下的编译器的默认的临时内存分配时(使用malloc语句)字节对齐方式,我用的ccs5.2,默认是8字节对齐,现在想节省空间使用4字节对齐方式。(或者是一些特殊的字节对齐,比如说5字节对齐。)