As explained over here,The pragma is compiler dependent, gcc doesn't recognize startup/exit pragma. Similar behavior can be achieved via attribute in gcc.Here is sample code.https://onlinegdb.com/BkHVhvIOf