def METHOD_NAME(flags, compil_state, gcc_msg):
    """
    Generate feedback for the compilation.
    """
    if compil_state == "error":
        bg_color = 'Salmon'
        gcc_state = 'Erreur'
        color_state = 'DarkRed'
    elif compil_state == "warning":
        bg_color = 'Moccasin'
        gcc_state = 'Warning'
        color_state = 'DarkOrange'
    else:
        bg_color = 'LightGreen'
        gcc_state = 'Réussie'
        color_state = 'DarkGreen'
    compil_fb = '<u>Compilation'
    if len(flags) > 0:
        compil_fb += ' avec drapeaux ' + flags
    compil_fb += ' :</u> <font color="' + color_state  + '"><b>' + gcc_state + '</b></font><br />' 
    if compil_state == "error":
        compil_fb += 'Il y a des erreurs à la compilation de votre programme.'
    elif compil_state == "warning":
        compil_fb += 'Vous pouvez augmenter la qualité de votre programme en lisant les recommandations du compilateur.'
    else:
        compil_fb += 'Compilation parfaite, <b>gcc</b> ne retourne ni warning ni erreur.<br />'
    if len(gcc_msg) > 0:
        compil_fb += '<br />Feedback provenant de gcc: <br />'
        compil_fb += terminal_code(gcc_msg)
    return add_border(compil_fb, "Black", None, "1em", "normal", "normal", bg_color, "4px")