{"id":1282,"date":"2025-06-06T12:44:21","date_gmt":"2025-06-06T11:44:21","guid":{"rendered":"https:\/\/workboot.fr\/ciela\/?page_id=1282"},"modified":"2026-02-18T17:05:05","modified_gmt":"2026-02-18T16:05:05","slug":"tp-c","status":"publish","type":"page","link":"https:\/\/workboot.fr\/ciela\/tp-c\/","title":{"rendered":"TP_C"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ici on fait du C du d\u00e9but du C ! <a href=\"https:\/\/workboot.fr\/ciela\/dennis-ritchie-et-brian-kernighan\/\" type=\"page\" id=\"1115\">K&amp;R <\/a> C ansi<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">gcc et gdb <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Le Projet GNU : Une gen\u00e8se fondatrice<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Avant de parler de GCC et GDB, il faut comprendre le contexte :&nbsp;<strong>le projet GNU<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Origine :<\/strong>&nbsp;Lanc\u00e9 en&nbsp;<strong>1983<\/strong>&nbsp;par&nbsp;<a href=\"https:\/\/fr.wikipedia.org\/wiki\/Richard_Stallman\"><strong>Richard Stallman<\/strong>&nbsp;<\/a>au MIT.<\/li>\n\n\n\n<li><strong>Objectif :<\/strong>&nbsp;Cr\u00e9er un syst\u00e8me d\u2019exploitation&nbsp;<strong>totalement libre<\/strong>, compatible avec Unix, que tout le monde pourrait utiliser, \u00e9tudier, modifier et redistribuer.<\/li>\n\n\n\n<li><strong>Le nom :<\/strong>&nbsp;GNU est un acronyme r\u00e9cursif qui signifie&nbsp;<em>\u00ab\u00a0GNU&rsquo;s Not Unix!\u00a0\u00bb<\/em>&nbsp;(GNU n\u2019est pas Unix).<\/li>\n\n\n\n<li><strong>Philosophie :<\/strong>&nbsp;Le projet a donn\u00e9 naissance au concept de&nbsp;<strong>copyleft<\/strong>&nbsp;et \u00e0 la licence&nbsp;<strong>GPL<\/strong>&nbsp;(General Public License).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Le projet GNU a commenc\u00e9 par \u00e9crire tous les outils n\u00e9cessaires \u00e0 un syst\u00e8me d\u2019exploitation : compilateur, \u00e9diteur, shell, biblioth\u00e8ques, etc. Le noyau pr\u00e9vu (Hurd) \u00e9tant long \u00e0 d\u00e9velopper, le noyau&nbsp;<strong>Linux<\/strong>&nbsp;(cr\u00e9\u00e9 par Linus Torvalds) a \u00e9t\u00e9 adopt\u00e9 plus tard, formant ainsi le couple&nbsp;<strong>GNU\/Linux<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/decouverte-du-c-ansi-par-kr\/\">TP0_C<\/a> :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>prise en main de la cha\u00eene de compilation c (<a href=\"https:\/\/workboot.fr\/ciela\/gcc\/\">gcc<\/a>\/<a href=\"https:\/\/workboot.fr\/ciela\/gdb\/\">gdb<\/a>), les options importantes <\/li>\n\n\n\n<li>affichage d&rsquo;une cha\u00eene de caract\u00e8re avec <a href=\"https:\/\/workboot.fr\/ciela\/printf\/\">printf<\/a><\/li>\n\n\n\n<li>debugger de base <\/li>\n\n\n\n<li>les variables enti\u00e8res  , les max et les min<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/tp1_c-on-va-coder\/\">TP1_C<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>prise en main de la cha\u00eene de compilation pour faire du c ansi avec GCC<\/li>\n\n\n\n<li>Afficher un caract\u00e8re (char)<\/li>\n\n\n\n<li>Afficher une cha\u00eene de caract\u00e8re (string)<\/li>\n\n\n\n<li>utilisation de gdb , pas \u00e0 pas .<\/li>\n\n\n\n<li>Afficher une valeur enti\u00e8re et comprendre les limites des variables (char, int , long )<\/li>\n\n\n\n<li>r\u00e9aliser un jeu de hasard , pseudo al\u00e9atoire<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">TP2_C: Structures de contr\u00f4le<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/tp2_c-les-parametres\/\">TP3_C<\/a>: les param\u00e8tres (arguments)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>apprendre \u00e0 passer des param\u00e8tres a un programme \u00e9crit en c<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/tpc_4-codage\/\">TP4_C:<\/a> faire des maths  , math.h<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/tp_c-5-les-fonctions\/\">TP5_C:<\/a> Les fonctions et librairie de fonctions, librairie statique et librairie dynamique <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/hash_simple\/\" type=\"page\" id=\"5826\">TP6 C<\/a>: Le hash en informatique , principe et utilisation <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/tp-c-images\/\" type=\"page\" id=\"3894\">TP7_C<\/a>: D\u00e9couverte des images Bitmap<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/workboot.fr\/ciela\/son-la-440hz-wav\/\" type=\"page\" id=\"5537\">TP8_C<\/a>: Cr\u00e9ation d&rsquo;un fichier son , ici un LA 440Hz<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ici on fait du C du d\u00e9but du C ! K&amp;R C ansi gcc et gdb Le Projet GNU : Une gen\u00e8se fondatrice Avant de parler de GCC et GDB, il faut comprendre le contexte :&nbsp;le projet GNU. Le projet GNU a commenc\u00e9 par \u00e9crire tous les outils n\u00e9cessaires \u00e0 un syst\u00e8me d\u2019exploitation : compilateur, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-1282","page","type-page","status-publish","hentry"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"admin","author_link":"https:\/\/workboot.fr\/ciela\/author\/admin\/"},"uagb_comment_info":0,"uagb_excerpt":"Ici on fait du C du d\u00e9but du C ! K&amp;R C ansi gcc et gdb Le Projet GNU : Une gen\u00e8se fondatrice Avant de parler de GCC et GDB, il faut comprendre le contexte :&nbsp;le projet GNU. Le projet GNU a commenc\u00e9 par \u00e9crire tous les outils n\u00e9cessaires \u00e0 un syst\u00e8me d\u2019exploitation : compilateur,\u2026","_links":{"self":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/comments?post=1282"}],"version-history":[{"count":14,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1282\/revisions"}],"predecessor-version":[{"id":6849,"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/pages\/1282\/revisions\/6849"}],"wp:attachment":[{"href":"https:\/\/workboot.fr\/ciela\/wp-json\/wp\/v2\/media?parent=1282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}