summaryrefslogtreecommitdiffstats
path: root/images/user/exe-app.puml
blob: 0ca2c69bcba15890aae269676a2fb1b3a1a65182 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
'
' Executable Application
'
' Copyright (c) 2018 Chris Johns <chrisj@rtems.org>
' All rights reserved.
'
@startuml

 folder Application {
  file app1.c
  file app2.c
 }

 rectangle "3rd Party\nHeaders" as 3rd_party_headers {
  folder headers as pkg_headers
 }

 folder rtems_headers {
  file rtems.h
 }

 folder std_headers {
  file stddef.h
  file stdio.h
 }

 agent cc
 file  objects

 Application   --> cc : app1.c\napp2.c
 pkg_headers   --> cc : -Ipkg
 rtems_headers --> cc : -Irtems
 std_headers   --> cc
 cc            --> objects: **compile**

 rectangle "3rd Party\nLibraries" as 3rd_party {
  package libpkg as pkg
 }

 folder librtems {
  folder rtems
  folder posix
  folder sapi
  folder score
 }

 folder stdlibs {
  file libc
  file libm
  file "libstdc++"
 }

 agent ld

 objects  --> ld : app1.o\napp2.o
 pkg      --> ld : -lpkg
 librtems --> ld : -lrtems
 stdlibs  --> ld : "-lm\n-lstdc++"

 file executable

 ld --> executable: **link**

 rectangle Target {
   agent bootloader
   agent memory
 }

 executable --> bootloader: **load**
 bootloader -right-> memory: **execute**

@enduml