See section Static Library Project to learn more about Static Library projects.
Here is a list of files that will be created:
A file with the same name as the project will be created and added
to the project by default. It will contain the main()
function.
A startup file(startup_*.c) will be available at 'cmsis\src' directory. It contains the default interrupt handlers for all the peripherals.
A system file(system_*.c) available at 'cmsis\src' provides the system level initialization functions that are called on start-up
Linker scripts with appropriate sections based on the device will be created at 'cmsis\LinkerScripts' directory in the project folder
In case if you have deleted any files in cmsis folder and want to revert it back or if you have changed the device, just right click the Project and click 'CMSIS Update from Atmel' to get the appropriate files.
#define MAXINT 200000 int main(void) { unsigned int t=1000, k=0, l=5, pn=2; unsigned int primes[t]; primes[0]=2; primes[1]=3; while (pn < t || primes[pn] < MAXINT) { for ( k = 0; k <= pn; k++) { if (l % primes[k] == 0) { goto otog; } else { if (k == pn) primes[pn++]=l; } } otog: l += 2; } return 0; }