{"id":1348,"date":"2021-04-02T13:47:19","date_gmt":"2021-04-02T20:47:19","guid":{"rendered":"https:\/\/coderpad-staging.io\/?post_type=programming-language&#038;p=1071"},"modified":"2023-04-17T04:01:00","modified_gmt":"2023-04-17T11:01:00","slug":"c","status":"publish","type":"programming-language","link":"https:\/\/coderpad.io\/languages\/c\/","title":{"rendered":"C"},"content":{"rendered":"\n<p>The gcc compiler is invoked with the following args:<\/p>\n\n\n\n<p><code>gcc -g -fsanitize=address -std=c17 -Wall -fdiagnostics-color -pthread -lm<\/code><\/p>\n\n\n\n<p>Which will:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the C17 standard<\/li>\n\n\n\n<li>Turn on all warning messages<\/li>\n\n\n\n<li>Compile in debug mode<\/li>\n\n\n\n<li>Warn on memory use-after-free bugs and other memory issues<\/li>\n\n\n\n<li>Link the pthread and math libraries<\/li>\n<\/ul>\n\n\n\n<p>You should define an&nbsp;<code>int main()<\/code>&nbsp;entrypoint.<\/p>\n","protected":false},"parent":0,"menu_order":0,"template":"","class_list":["post-1348","programming-language","type-programming-language","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/programming-language\/1348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/programming-language"}],"about":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/types\/programming-language"}],"wp:attachment":[{"href":"https:\/\/coderpad.io\/wp-json\/wp\/v2\/media?parent=1348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}