Compiler:
$ g++ -pedantic -std=c++98 -Wall -g *pp| #!/usr/bin/env python3 | |
| # SPDX-License-Identifier: Apache-2.0 | |
| """Query SoC platform info.""" | |
| # Copyright 2026 Harenome Ranaivoarivony-Razanajato | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at |
| #!/usr/bin/env python3 | |
| # SPDX-License-Identifier: BSD-3-Clause | |
| """Minimal utilities for torch.dtype validation. | |
| Nothing fancy nor complicated but the kind of thing you don't do often enough to | |
| remember right off the bat when you do need it. | |
| Most of the `torch` API accepts both `str` and `torch.dtype` as `dtype` args. | |
| It is usually better and easier to directly forward `dtype` to whatever `torch` |
| .PHONY: all clean | |
| CFLAGS = -std=gnu11 -O3 -march=native -Wall -Wextra | |
| test_vect3d: test_vect3d.o vect.o | |
| $(CC) $^ -o $@ | |
| clean: | |
| rm -rf *.o |
| //Compile: gcc -std=c99 | |
| #include <stdio.h> | |
| #define m(z) z( | |
| #define _(__) ) __ | |
| #define b(h,y,u) u ## y ## h | |
| #define f m(for) | |
| #define p ! 'c'-'c', m(b(tf,in,pr)) | |
| typedef int t; | |
| t main() | |
| { |
Compiler:
$ g++ -pedantic -std=c++98 -Wall -g *ppNe pas oublier de compiler en C++11.
$ g++ -std=c++11 -pedantic -Wall -g *pp| CC = javac | |
| JPATH = src | |
| BPATH = bytecode | |
| DPATH = doc | |
| vpath %.java $(JPATH)/ | |
| vpath %.class $(BPATH)/ | |
| all : | bytecodedir |
| CC = gcc | |
| CFLAGS = -Wall -std=c99 -pedantic | |
| SOURCES=$(wildcard *.c) | |
| EXE=$(patsubst %.c,%,$(SOURCES)) | |
| all : $(EXE) | |
| .c : | |
| $(CC) $(CFLAGS) -o $@ $< |
| # Section .data {{{ | |
| .data | |
| RetChar: .asciiz "\n" | |
| Tableau: .asciiz "Tableau de taille: " | |
| Aladresse: .asciiz "à l'adresse: " | |
| Adresse: .asciiz "Adresse du premier entier du tableau: " | |
| Place: .asciiz "Place de l'entier dans le tableau: " | |
| #}}} |